summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svga_state_gs.c
AgeCommit message (Collapse)AuthorFilesLines
2018-09-10svga: remove obsolete code to reemit gs bindingCharmaine Lee1-37/+0
The svga_reemit_gs_bindings function is no longer needed. Remove it. Reviewed-by: Neha Bhende <bhenden@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2018-02-15svga: replace gotos with else clausesBrian Paul1-5/+4
Simple clean-up. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2017-06-30svga: change error handling convention for svga_set_stream_output()Brian Paul1-2/+8
In general, the functions which emit commands to the command buffer check for failure and return a PIPE_ERROR_x code. It's up to the caller to flush the buffer and retry the command. But svga_set_stream_output() did its own flushing and the callers never checked the return value (though, it would always be PIPE_OK) in practice. This patch changes svga_set_stream_output() so that it does not call svga_context_flush() when the buffer is full. And we update the callers to check the return value as we do for other functions, like svga_set_shader(). No Piglit regressions. Also tested w/ Nature demo. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2017-06-22svga: check return value from svga_set_shader( SVGA3D_SHADERTYPE_GS, NULL)Brian Paul1-0/+2
If the call fails we need to flush the command buffer and retry. In this case, we were failing to unbind the GS which led to subsequent errors. This fixes a bug replaying a Cinebench R15 apitrace in a Linux guest. VMware bug 1894451 cc: mesa-stable@lists.freedesktop.org Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2016-08-26svga: add guest statistic gathering interfaceCharmaine Lee1-4/+8
With this patch, guest statistic gathering interface is added to svga winsys interface that can be used to gather svga driver statistic. The winsys module can then share the statistic info with the VMX host via the mksstats interface. The statistic enums used in the svga driver are defined in svga_stats_count and svga_stats_time in svga_winsys.h Reviewed-by: Brian Paul <brianp@vmware.com>
2015-12-06gallium/drivers: Sanitize NULL checks into canonical formEdward O'Callaghan1-3/+3
Use NULL tests of the form `if (ptr)' or `if (!ptr)'. They do not depend on the definition of the symbol NULL. Further, they provide the opportunity for the accidental assignment, are clear and succinct. Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2015-10-16svga: remove svga_tgsi_vgpu9_translate() call in GS pathBrian Paul1-7/+3
We can never have geometry shaders with vgpu9. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2015-09-10svga: clean up the compile_vs/gs/fs() functionsBrian Paul1-12/+7
Sipmlify structure and remove gotos. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2015-09-02svga: add new svga_state_gs.c fileBrian Paul1-0/+264
Signed-off-by: Brian Paul <brianp@vmware.com>