[Mesa-dev] [PATCH 4/4] radeonsi: Fall back to dummy pixel shader instead of trying indirect addressing.

Michel Dänzer michel at daenzer.net
Tue Jan 22 09:32:58 PST 2013


From: Michel Dänzer <michel.daenzer at amd.com>

Indirect addressing isn't fully handled yet.

Fixes crashes with piglit tests using indirect addressing.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/gallium/drivers/radeonsi/radeonsi_shader.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index 52ecef9..f398e6c 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
@@ -913,6 +913,11 @@ int si_pipe_shader_create(
 	bld_base = &si_shader_ctx.radeon_bld.soa.bld_base;
 
 	tgsi_scan_shader(sel->tokens, &shader_info);
+	if (shader_info.indirect_files != 0) {
+		fprintf(stderr, "Indirect addressing not fully handled yet\n");
+		return -ENOSYS;
+	}
+
 	shader->shader.uses_kill = shader_info.uses_kill;
 	bld_base->info = &shader_info;
 	bld_base->emit_fetch_funcs[TGSI_FILE_CONSTANT] = fetch_constant;
-- 
1.7.10.4



More information about the mesa-dev mailing list