diff options
author | Vadim Girlin <[email protected]> | 2013-05-24 16:45:58 +0400 |
---|---|---|
committer | Vadim Girlin <[email protected]> | 2013-05-24 16:45:58 +0400 |
commit | 0b5b3f8816f9cb5a2b2259176b4c7dd9e4d31233 (patch) | |
tree | 0b8ceea97f53809718d91334bd0d183796c9ddbf /src/gallium/drivers/r600 | |
parent | d1e0dc62752d3dd0ed7909cda6a4380e2ab8695b (diff) |
r600g/sb: fix gpr array handling for compute shaders
Fixes segfault with bfgminer and R600_DEBUG=sbcl.
Signed-off-by: Vadim Girlin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_bc_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |