aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_device.c
Commit message (Collapse)AuthorAgeFilesLines
* automake: move the git_sha1.h rule a level upEmil Velikov2016-05-301-1/+1
| | | | | | | | | | | | | | | This way we can reuse the header from other places like - src/intel/vulkan and src/gallium. Only the former is hooked up atm. Make sure .gitignore is updated, as well as all the users (the mesa code does not need any changes). Also ensure that the file is always created by adding it to the BUILT_SOURCES target. Cc: Jason Ekstrand <[email protected]> Cc: Kristian Høgsberg Kristensen <[email protected]> Signed-off-by: Emil Velikov <[email protected]>
* anv: bail out if anv_wsi_init() failsEmil Velikov2016-05-301-1/+3
| | | | | | | | | | | | | | Otherwise we'll end up setting up a device with no winsys integration. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> --- Hard-coding the rendernode name in anv_physical_device_init() is a bad idea really. We could/should be using drmGetDevices() to get info on all the devices (master/render/etc. node names, pci location etc.) and apply our heuristics on top of that. That can come up as a follow up change.
* anv: Try the first 8 render nodes instead of just renderD128Jason Ekstrand2016-05-271-4/+10
| | | | | | | | This way, if you have other cards installed, the Vulkan driver will still work. No guarantees about WSI working correctly but offscreen should at least work. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95537
* anv: strdup the device path into the physical deviceJason Ekstrand2016-05-271-1/+3
| | | | | This way we don't have to assume that the string coming in is a piece of constant data that exists forever.
* anv: Enable textureCompressionASTC_LDR on Gen9+Nanley Chery2016-05-201-1/+1
| | | | | Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* anv/device: Add a boolean for robust buffer accessJason Ekstrand2016-05-191-0/+3
|
* anv/device: Fix viewportBoundsRangeNanley Chery2016-05-181-1/+1
| | | | | | | | | | | | Align with the spec requirement that the range must be at least [−2 × maxViewportDimensions, 2 × maxViewportDimensions − 1]. Our hardware supports this. Fixes dEQP-VK.api.info.device.properties Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94896 Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
* anv/wsi: Make WSI per-physical-device rather than per-instanceJason Ekstrand2016-05-171-6/+3
| | | | | This better maps to the Vulkan object model and also allows WSI to at least know the hardware generation which is useful for format checks.
* anv: Don't advertise shaderImageGatherExtendedJason Ekstrand2016-05-121-1/+1
| | | | | We don't actually support all of the extended gather functionality so we shouldn't be advertising it.
* anv: factor out the X11/XCB buildEmil Velikov2016-05-011-0/+2
| | | | | | | | | | | Similar to earlier commit - move all the common bits into a single place, thus improving readability and allowing us to see what's missing. Also don't forget to add the missing bits. This commit should allows us to build wayland only vulkan ;-) Signed-off-by: Emil Velikov <[email protected]> Acked-by: Jason Ekstrand <[email protected]>
* anv: kill of custom define HAVE_WAYLAND_PLATFORMEmil Velikov2016-05-011-1/+1
| | | | | | | Vulkan API already has equivalent, so simplify things as just use it. Signed-off-by: Emil Velikov <[email protected]> Acked-by: Jason Ekstrand <[email protected]>
* anv/device: Set the compressed texture feature flags correctlyNanley Chery2016-04-271-2/+3
| | | | | | | | | | | | | | | Sampling from an ETC2 texture is supported on Bay Trail and from Gen8 onwards. While ASTC_LDR is supported on Gen9, the logic to handle such formats has not yet been implemented in the driver. Fixes dEQP-VK.api.info.format_properties.compressed_formats. v2: Enable ETC2 for Bay Trail (Kenneth Graunke) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94896 Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* anv: s/anv_batch_emit_blk/anv_batch_emit/Jason Ekstrand2016-04-201-4/+4
| | | | Acked-by: Kristian Høgsberg <[email protected]>
* anv/device: Use the new emit macroJason Ekstrand2016-04-201-4/+4
| | | | Acked-by: Kristian Høgsberg <[email protected]>
* anv/device: Images are only enabled in scalar stagesJason Ekstrand2016-04-151-2/+2
| | | | Reported-by: Ilia Mirkin <[email protected]>
* anv: Advertise vertexPipelineStoresAndAtomics based on scalar stagesJason Ekstrand2016-04-151-1/+5
| | | | | | Previously, we just looked at the hardware generation but this meant that if you did INTEL_DEBUG=vec4 on BDW or SKL, you would have advertised but non-working features.
* anv/gen7: Save kernel command parser versionJordan Justen2016-03-281-0/+11
| | | | Signed-off-by: Jordan Justen <[email protected]>
* anv/device: Advertise version 1.0.5Jason Ekstrand2016-03-221-1/+1
| | | | Nothing substantial has changed since 1.0.2
* anv/device: Ignore the patch portion of the requested API versionJason Ekstrand2016-03-221-1/+1
| | | | | | Fixes dEQP-VK.api.device_init.create_instance_name_version Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94661
* anv/batch_chain: Fall back to growing batches when chaining isn't availableJason Ekstrand2016-03-211-0/+7
|
* anv/allocator: Make the bo_pool dynamically sizedJason Ekstrand2016-03-181-3/+2
|
* anv/allocator: Add a size field to bo_pool_allocJason Ekstrand2016-03-181-2/+2
|
* anv/device: Flush the fence batch rather than the start of the BOJason Ekstrand2016-03-151-1/+1
|
* anv: Store CPU-side fence information in the BOJason Ekstrand2016-03-071-18/+15
| | | | | | This reduces the number of allocations a bit and cuts back on memory usage. Kind-of a micro-optimization but it also makes the error handling a bit simpler so it seems like a win.
* anv/device: Up device limits for 3D and array texture dimensionsNanley Chery2016-03-071-2/+2
| | | | | | | The limit for these textures is 2048 not 1024. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
* anv/device: Actually free the CPU-side fence struct againJason Ekstrand2016-03-071-0/+1
| | | | | In 23de78768, when we switched from allocating individual BOs to using the pool for fences, we accidentally deleted the free.
* anv: Create fences from the batch BO poolJason Ekstrand2016-03-061-8/+2
| | | | | | Applications may create a *lot* of fences, perhaps as much as one per vkQueueSubmit. Really, they're supposed to use ResetFence, but it's easy enough for us to make them crazy-cheap so we might as well.
* anv: Don't advertise pipelineStatisticsQueryKristian Høgsberg Kristensen2016-02-291-1/+1
| | | | | | We don't support that just yet. Reported-by: Jacek Konieczny <[email protected]>
* anv: Use isl to fill buffer surface statesJason Ekstrand2016-02-271-18/+6
|
* anv/device: Properly handle apiVersion == 0Jason Ekstrand2016-02-251-3/+8
| | | | | | From the Vulkan 1.0 spec section 3.2: "If apiVersion is 0 the implementation must ignore it"
* anv: Zero out the WSI array when initializing the instanceJason Ekstrand2016-02-201-0/+2
|
* Move the intel vulkan driver to src/intel/vulkanJason Ekstrand2016-02-181-0/+1789