st/mesa: keep serialized NIR instead of nir_shader in st_program
[mesa.git] / src / mesa / state_tracker / st_atom_texture.c
index ef54bc5a77f39541767036d73f3b48e2b44f9b82..5a0f91ccb1403ee50a90cc3c88775034e9abe17b 100644 (file)
@@ -182,6 +182,10 @@ update_textures(struct st_context *st,
       /* use original view as template: */
       tmpl = *sampler_views[unit];
 
+      /* if resource format matches then YUV wasn't lowered */
+      if (st_get_view_format(stObj) == stObj->pt->format)
+         continue;
+
       switch (st_get_view_format(stObj)) {
       case PIPE_FORMAT_NV12:
          /* we need one additional R8G8 view: */