From c40f14bb318967586d397126341b357b1567698d 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: --- src/intel/vulkan/anv_image.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 098392afd14..534c154329d 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -3673,8 +3673,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)