lavapipe: don't memcpy tess_ccw when copying pipeline library shaders
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 15 Mar 2023 11:27:12 +0000 (07:27 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 30 Mar 2023 04:50:35 +0000 (04:50 +0000)
this gets handled later

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21866>

src/gallium/frontends/lavapipe/lvp_pipeline.c

index 297dd48..cb8c0a0 100644 (file)
@@ -809,8 +809,10 @@ lvp_graphics_pipeline_init(struct lvp_pipeline *pipeline,
             pipeline->line_rectangular = p->line_rectangular;
             pipeline->last_vertex = p->last_vertex;
             memcpy(pipeline->shaders, p->shaders, sizeof(struct lvp_shader) * 4);
-            for (unsigned i = 0; i < MESA_SHADER_COMPUTE; i++)
+            for (unsigned i = 0; i < MESA_SHADER_COMPUTE; i++) {
                pipeline->shaders[i].pipeline_nir = NULL; //this gets handled later
+               pipeline->shaders[i].tess_ccw = NULL; //this gets handled later
+            }
          }
          if (p->stages & VK_GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT)
             pipeline->force_min_sample = p->force_min_sample;