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@vmware.com>
This commit is contained in:
committed by
Brian Paul
parent
885d75760b
commit
57d9222ef2
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user