gallium/vl: Fix sampler view components for Y8_400 format

Copy sampler view for last component to remaining components.
Fixes sampling from Y8_400 luma-only format.

Fixes: 8a20e634ce ("gallium/vl: Add plane order for Y8_400 format")
Reviewed-by: Thong Thai <thong.thai@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32919>
This commit is contained in:
David Rosca
2025-01-07 10:17:02 +01:00
committed by Marge Bot
parent 358dcdabba
commit 746ba9f2d2
@@ -328,6 +328,11 @@ vl_video_buffer_sampler_view_components(struct pipe_video_buffer *buffer)
}
}
assert(component != 0);
for (i = component; i < VL_NUM_COMPONENTS; ++i)
pipe_sampler_view_reference(&buf->sampler_view_components[i], buf->sampler_view_components[component - 1]);
return buf->sampler_view_components;
error: