summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-08-18 22:59:22 +0200
committerMarek Olšák <[email protected]>2011-08-19 14:46:25 +0200
commite330d90e919cebd64f720ccfb5dca94c2ded4e4c (patch)
tree0b74b0bb544393885511c47dbfa915ae15ca9b55 /src/gallium
parentccecc08f79afc020c8c0acface04a8e53e3a7c32 (diff)
r600g: fix a possible crash in r600_adjust_gprs
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/r600_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index 0757eab2ea7..19bef31468d 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -1676,7 +1676,7 @@ void r600_adjust_gprs(struct r600_pipe_context *rctx)
if (rctx->chip_class >= EVERGREEN)
return;
- if (!rctx->ps_shader && !rctx->vs_shader)
+ if (!rctx->ps_shader || !rctx->vs_shader)
return;
if (rctx->ps_shader->shader.bc.ngpr > rctx->default_ps_gprs)