From: Vadim Girlin Date: Fri, 24 May 2013 12:45:58 +0000 (+0400) Subject: r600g/sb: fix gpr array handling for compute shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b5b3f8816f9cb5a2b2259176b4c7dd9e4d31233;p=mesa.git r600g/sb: fix gpr array handling for compute shaders Fixes segfault with bfgminer and R600_DEBUG=sbcl. Signed-off-by: Vadim Girlin --- 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; }