From 09073442c17cfa82d5cf59d60f59f57cc0c93717 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 4 Jan 2024 23:16:43 +0200 Subject: [PATCH] anv: fix incorrect ISL usage in buffer view creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need to use the usage parameter. Signed-off-by: Lionel Landwerlin Fixes: 64f20cec28 ("anv: prepare image/buffer views for non indirect descriptors") Reviewed-by: Rohan Garg Reviewed-by: José Roberto de Souza Part-of: (cherry picked from commit c40f14bb318967586d397126341b357b1567698d) --- .pick_status.json | 2 +- src/intel/vulkan/anv_image.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 5e2aa167ff8..80610503d5c 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -304,7 +304,7 @@ "description": "anv: fix incorrect ISL usage in buffer view creation", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "64f20cec28d8df7815157dc09ba0bd33d3202a57", "notes": null diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index ba47e2164c1..dcb4fbcc940 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -3607,8 +3607,7 @@ anv_fill_buffer_view_surface_state(struct anv_device *device, { anv_fill_buffer_surface_state(device, state->state_data.data, - format, swizzle, - ISL_SURF_USAGE_TEXTURE_BIT, + format, swizzle, usage, address, range, stride); if (state->state.map)