From 0b5b3f8816f9cb5a2b2259176b4c7dd9e4d31233 Mon Sep 17 00:00:00 2001 From: Vadim Girlin Date: Fri, 24 May 2013 16:45:58 +0400 Subject: [PATCH] r600g/sb: fix gpr array handling for compute shaders Fixes segfault with bfgminer and R600_DEBUG=sbcl. Signed-off-by: Vadim Girlin --- src/gallium/drivers/r600/sb/sb_bc_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sb/sb_bc_parser.cpp b/src/gallium/drivers/r600/sb/sb_bc_parser.cpp index a78ca4b91d8..f8c39ce246b 100644 --- a/src/gallium/drivers/r600/sb/sb_bc_parser.cpp +++ b/src/gallium/drivers/r600/sb/sb_bc_parser.cpp @@ -109,7 +109,7 @@ int bc_parser::prepare() { int bc_parser::parse_decls() { if (!pshader) { - sh->add_gpr_array(0, pshader->bc.ngpr, 0x0F); + sh->add_gpr_array(0, bc->ngpr, 0x0F); return 0; } -- 2.30.2