summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2013-05-24 16:45:58 +0400
committerVadim Girlin <[email protected]>2013-05-24 16:45:58 +0400
commit0b5b3f8816f9cb5a2b2259176b4c7dd9e4d31233 (patch)
tree0b8ceea97f53809718d91334bd0d183796c9ddbf /src/gallium/drivers
parentd1e0dc62752d3dd0ed7909cda6a4380e2ab8695b (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')
-rw-r--r--src/gallium/drivers/r600/sb/sb_bc_parser.cpp2
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;
}