anv: fix incorrect ISL usage in buffer view creation

We need to use the usage parameter.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 64f20cec28 ("anv: prepare image/buffer views for non indirect descriptors")
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27956>
This commit is contained in:
Lionel Landwerlin
2024-01-04 23:16:43 +02:00
committed by Marge Bot
parent 33bf7ca710
commit c40f14bb31

View File

@@ -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)