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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user