st/mesa: don't lower YUV when driver supports it natively
This fixes YUYV support on etnaviv.
Fixes: 7404833c
"gallium: add handling for YUV planar surfaces"
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1896>
This commit is contained in:

committed by
Marge Bot

parent
4e3c81517b
commit
a554b45d73
@@ -304,7 +304,8 @@ update_shader_samplers(struct st_context *st,
|
||||
st_get_texture_object(st->ctx, prog, unit);
|
||||
struct pipe_sampler_state *sampler = samplers + unit;
|
||||
|
||||
if (!stObj)
|
||||
/* if resource format matches then YUV wasn't lowered */
|
||||
if (!stObj || st_get_view_format(stObj) == stObj->pt->format)
|
||||
continue;
|
||||
|
||||
switch (st_get_view_format(stObj)) {
|
||||
|
Reference in New Issue
Block a user