mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-11 06:28:09 +02:00
[g3dvl] some minor cleanup
This commit is contained in:
parent
1f3a85ec79
commit
4de5d81638
1 changed files with 1 additions and 1 deletions
|
|
@ -100,11 +100,11 @@ struct vl_ycbcr_sampler_views *vl_ycbcr_get_sampler_views(struct vl_ycbcr_buffer
|
|||
memset(&sv_templ, 0, sizeof(sv_templ));
|
||||
u_sampler_view_default_template(&sv_templ, buffer->resources.y, buffer->resources.y->format);
|
||||
|
||||
// Workaround
|
||||
if (util_format_get_nr_components(buffer->resources.y->format) == 1) {
|
||||
sv_templ.swizzle_r = PIPE_SWIZZLE_RED;
|
||||
sv_templ.swizzle_g = PIPE_SWIZZLE_RED;
|
||||
sv_templ.swizzle_b = PIPE_SWIZZLE_RED;
|
||||
sv_templ.swizzle_a = PIPE_SWIZZLE_RED;
|
||||
}
|
||||
|
||||
if (!buffer->sampler_views.y) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue