Mesa (master): svga: abort shader translation upon indirect indexing of temporaries
Brian Paul
brianp at kemper.freedesktop.org
Fri Sep 8 22:01:09 UTC 2017
Module: Mesa
Branch: master
Commit: 57d9222ef29e080e944f28fdeeef9ed226461e08
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=57d9222ef29e080e944f28fdeeef9ed226461e08
Author: Charmaine Lee <charmainel at vmware.com>
Date: Tue Aug 1 18:02:57 2017 -0700
svga: abort shader translation upon indirect indexing of temporaries
This patch aborts shader translation upon indirect indexing of temporary
register on non-vgpu10 device. This prevents non-supported feature
sending to the device.
Tested wth MTT-piglit, glretrace.
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/gallium/drivers/svga/svga_tgsi.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gallium/drivers/svga/svga_tgsi.c b/src/gallium/drivers/svga/svga_tgsi.c
index 7cbd516690..0b2d8af64d 100644
--- a/src/gallium/drivers/svga/svga_tgsi.c
+++ b/src/gallium/drivers/svga/svga_tgsi.c
@@ -209,6 +209,12 @@ svga_tgsi_vgpu9_translate(struct svga_context *svga,
goto fail;
}
+ if (emit.info.indirect_files & (1 << TGSI_FILE_TEMPORARY)) {
+ debug_printf(
+ "svga: indirect indexing of temporary registers is not supported.\n");
+ goto fail;
+ }
+
emit.in_main_func = TRUE;
if (!svga_shader_emit_header(&emit)) {
More information about the mesa-commit
mailing list