[Mesa-dev] [PATCH] radv: Return correct result in EnumeratePhysicalDevices

2016-10-12 Thread Nicolas Koch
If pPhysicalDevices is too small for all physical devices, the driver must return VK_INCOMPLETE. Since only a single physical device is supported, this is only the case when pPhysicalDeviceCount == 0 && pPhysicalDevices != NULL. --- src/amd/vulkan/radv_device.c | 2 ++ 1 file changed, 2 insertions

Re: [Mesa-dev] [PATCH] anv: Return correct result in EnumeratePhysicalDevices

2016-10-12 Thread Nicolas Koch
On Wed, Oct 12, 2016 at 10:32 AM, Emil Velikov wrote: > Hi Nicolas, > > On 6 October 2016 at 20:21, Nicolas Koch wrote: >> If pPhysicalDevices is too small for all physical devices, >> the driver must return VK_INCOMPLETE. >> Since only a single physical device is

Re: [Mesa-dev] [PATCH] anv: Return correct result in EnumeratePhysicalDevices

2016-10-11 Thread Nicolas Koch
It's been a few days. Is anybody willing to push this? On Thu, Oct 6, 2016 at 11:25 PM, Anuj Phogat wrote: > On Thu, Oct 6, 2016 at 12:21 PM, Nicolas Koch wrote: >> If pPhysicalDevices is too small for all physical devices, >> the driver must return VK_INCOMPLETE. &g

[Mesa-dev] [PATCH] anv: Return correct result in EnumeratePhysicalDevices

2016-10-06 Thread Nicolas Koch
If pPhysicalDevices is too small for all physical devices, the driver must return VK_INCOMPLETE. Since only a single physical device is supported, this is only the case when pPhysicalDeviceCount == 0 && pPhysicalDevices != NULL. --- src/intel/vulkan/anv_device.c | 2 ++ 1 file changed, 2 insertion

[Mesa-dev] [PATCH] anv: device: never allocate more memory than heap_size

2016-09-22 Thread Nicolas Koch
Previously, the heap size of a physical device was kind of useless because it was not enforced. Now, we keep track of allocation sizes so that the sum of all allocations can never exceed the heap size advertised by anv_GetPhysicalDeviceMemoryProperties. --- src/intel/vulkan/anv_device.c | 42

[Mesa-dev] [PATCH] anv: Check for VK_WHOLE_SIZE in anv_CmdFillBuffer

2016-09-20 Thread Nicolas Koch
Vulkan spec: Size is the number of bytes to fill, and must be either a multiple of 4, or VK_WHOLE_SIZE to fill the range from offset to the end of the buffer. If VK_WHOLE_SIZE is used and the remaining size of the buffer is not a multiple of 4, then the nearest smaller multiple is used. --- src/in