r600g/sb: fix gpr array handling for compute shaders
authorVadim Girlin <vadimgirlin@gmail.com>
Fri, 24 May 2013 12:45:58 +0000 (16:45 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Fri, 24 May 2013 12:45:58 +0000 (16:45 +0400)
Fixes segfault with bfgminer and R600_DEBUG=sbcl.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/sb/sb_bc_parser.cpp

index a78ca4b91d80b9b7da8337a3f89d64cc972a5bd0..f8c39ce246bbe292d0893b5b600ba0612a1951fa 100644 (file)
@@ -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;
        }