summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/r600/evergreen_fragprog.c2
-rw-r--r--src/mesa/drivers/dri/r600/evergreen_vertprog.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r600/evergreen_fragprog.c b/src/mesa/drivers/dri/r600/evergreen_fragprog.c
index fb1f53a3642..7dcca8b146c 100644
--- a/src/mesa/drivers/dri/r600/evergreen_fragprog.c
+++ b/src/mesa/drivers/dri/r600/evergreen_fragprog.c
@@ -778,7 +778,7 @@ GLboolean evergreenSetupFPconstants(GLcontext * ctx)
radeonAllocDmaRegion(&context->radeon,
&context->fp_Constbo,
&context->fp_bo_offset,
- 256,
+ unNumParamData * 4 * 4,
256);
r600EmitShaderConsts(ctx,
context->fp_Constbo,
diff --git a/src/mesa/drivers/dri/r600/evergreen_vertprog.c b/src/mesa/drivers/dri/r600/evergreen_vertprog.c
index 291158009df..2bb055c5aa4 100644
--- a/src/mesa/drivers/dri/r600/evergreen_vertprog.c
+++ b/src/mesa/drivers/dri/r600/evergreen_vertprog.c
@@ -697,7 +697,7 @@ GLboolean evergreenSetupVPconstants(GLcontext * ctx)
radeonAllocDmaRegion(&context->radeon,
&context->vp_Constbo,
&context->vp_bo_offset,
- 256,
+ unNumParamData * 4 * 4,
256);
r600EmitShaderConsts(ctx,
context->vp_Constbo,