From: Neha Bhende Date: Tue, 10 Dec 2019 07:52:29 +0000 (+0530) Subject: svga: Use pipe_shader_state_from_tgsi to set shader state X-Git-Tag: upstream/20.1.8~3590 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=144561dc5ec3dcbe63cb054f806247bc120b64e4;p=platform%2Fupstream%2Fmesa.git svga: Use pipe_shader_state_from_tgsi to set shader state 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 --- diff --git a/src/gallium/drivers/svga/svga_state_tgsi_transform.c b/src/gallium/drivers/svga/svga_state_tgsi_transform.c index b567aab..9d701b7 100644 --- a/src/gallium/drivers/svga/svga_state_tgsi_transform.c +++ b/src/gallium/drivers/svga/svga_state_tgsi_transform.c @@ -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) {