mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 01:10:25 +01:00
anv/i915: Require HAS_EXEC_CAPTURE
This feature is almost as old as the Vulkan driver itself. We've required newer kernels for a long time. There's no point in having this feature bit kicking around. Acked-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36783>
This commit is contained in:
parent
f28eb1bae6
commit
cb5a2eafd5
3 changed files with 7 additions and 8 deletions
|
|
@ -1089,7 +1089,6 @@ struct anv_physical_device {
|
|||
* end.
|
||||
*/
|
||||
uint32_t n_perf_query_commands;
|
||||
bool has_exec_capture;
|
||||
VkQueueGlobalPriorityKHR max_context_priority;
|
||||
uint64_t gtt_size;
|
||||
|
||||
|
|
|
|||
|
|
@ -109,8 +109,11 @@ anv_i915_physical_device_get_parameters(struct anv_physical_device *device)
|
|||
return result;
|
||||
}
|
||||
|
||||
if (intel_gem_get_param(fd, I915_PARAM_HAS_EXEC_CAPTURE, &val))
|
||||
device->has_exec_capture = val;
|
||||
if (!intel_gem_get_param(fd, I915_PARAM_HAS_EXEC_CAPTURE, &val) || !val) {
|
||||
result = vk_errorf(device, VK_ERROR_INITIALIZATION_FAILED,
|
||||
"kernel missing exec capture support");
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Start with medium; sorted low to high */
|
||||
const VkQueueGlobalPriorityKHR priorities[] = {
|
||||
|
|
|
|||
|
|
@ -285,16 +285,13 @@ static uint32_t
|
|||
i915_bo_alloc_flags_to_bo_flags(struct anv_device *device,
|
||||
enum anv_bo_alloc_flags alloc_flags)
|
||||
{
|
||||
struct anv_physical_device *pdevice = device->physical;
|
||||
|
||||
uint64_t bo_flags = EXEC_OBJECT_PINNED;
|
||||
|
||||
if (!(alloc_flags & ANV_BO_ALLOC_32BIT_ADDRESS))
|
||||
bo_flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
|
||||
|
||||
if (((alloc_flags & ANV_BO_ALLOC_CAPTURE) ||
|
||||
INTEL_DEBUG(DEBUG_CAPTURE_ALL)) &&
|
||||
pdevice->has_exec_capture)
|
||||
if ((alloc_flags & ANV_BO_ALLOC_CAPTURE) ||
|
||||
INTEL_DEBUG(DEBUG_CAPTURE_ALL))
|
||||
bo_flags |= EXEC_OBJECT_CAPTURE;
|
||||
|
||||
if (alloc_flags & ANV_BO_ALLOC_IMPLICIT_WRITE) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue