svga: Use pipe_shader_state_from_tgsi to set shader state
authorNeha Bhende <bhenden@vmware.com>
Tue, 10 Dec 2019 07:52:29 +0000 (13:22 +0530)
committerCharmaine Lee <charmainel@vmware.com>
Mon, 10 Feb 2020 17:27:11 +0000 (09:27 -0800)
Use pipe_shader_state_from_tgsi() to set shader state for transformed
shader so that we get all correct data for respective shader state.

This fixes several regressed glretrace, piglit crashes found during merging
upsteam mesa

Fixes: bf12bc2dd7a2 (draw: add nir info gathering and building support)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_state_tgsi_transform.c

index b567aab6bc810bafed7628dcf5684e4248951931..9d701b7377237efc3439be8dd597358806169ec0 100644 (file)
@@ -131,7 +131,7 @@ emulate_point_sprite(struct svga_context *svga,
          tgsi_dump(new_tokens, 0);
       }
 
-      templ.tokens = new_tokens;
+      pipe_shader_state_from_tgsi(&templ, new_tokens);
       templ.stream_output.num_outputs = 0;
 
       if (streamout) {