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)
commit144561dc5ec3dcbe63cb054f806247bc120b64e4
treeaf8bb5f6c138d08c3077c294709d484150312708
parent470e73e7f86b4530cf789a779f43674ecec91881
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 <charmainel@vmware.com>
src/gallium/drivers/svga/svga_state_tgsi_transform.c