summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svga_state_gs.c
AgeCommit message (Collapse)AuthorFilesLines
2024-04-30svga: update timespan in copyright messageMartin Krastev1-1/+1
Update copyright timespans to include 2024. Signed-off-by: Martin Krastev <martin.krastev@broadcom.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28647>
2024-04-30svga: convert license block to SPDXMartin Krastev1-24/+6
* adopt a simplified SPDX scheme -- drop inline licenses * switch copyright from VMware to Broadcom Signed-off-by: Martin Krastev <martin.krastev@broadcom.com> Reviewed-by: Jose Fonseca <jose.fonseca@broadcom.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28647>
2023-06-27treewide: Replace the usage of TRUE/FALSE with true/falseYonggang Luo1-1/+1
this is a separate patch as it's won't affect the code style Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: David Heidelberg <david.heidelberg@collabora.com> Acked-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23577>
2023-05-25svga: remove unused tgsi includesThomas H.P. Andersen1-1/+0
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838>
2022-05-14svga: add svga_compile_shader helper functionCharmaine Lee1-49/+14
This patch refactors common shader compilation code into a helper function which will call the corresponding shader translation function according to the shader IR type. It also adds a function pointer for getting dummy shader for different shader stages. Reviewed-by: Neha Bhende <bhenden@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16501>
2022-05-14svga: create svga_shader_infoCharmaine Lee1-5/+2
This patch adds a new structure svga_shader_info which includes shader info that is accessed outside of the shader translation code. That's why it cannot be TGSI specific as we will later also support NIR. This shader info structure, however, is derived from the TGSI shader info or the NIR shader info. Reviewed-by: Neha Bhende <bhenden@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16501>
2022-01-18svga: add GL43 resource validation at draw timeNeha Bhende1-1/+5
This patch adds GL43 tracked states stack and supports GL43 resource validation at draw time. This patch is squash of in house patches to support GL43 on VMware driver. Reviewed-by: Charmaine Lee <charmainel@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14270>
2020-06-05svga: Add GL4.1(compatibility profile) support in svga driverNeha Bhende1-3/+14
This patch is a squash commit of a very long in-house patch series. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com> Signed-off-by: Neha Bhende <bhenden@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5317>
2019-03-08svga: add svga shader type in the shader variantCharmaine Lee1-2/+2
With this patch, the svga shader type will be saved in the shader variant, and there is no need to pass in the shader type to the define/destroy variant functions. Reviewed-by: Brian Paul <brianp@vmware.com>
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>