summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorAndre Maasikas <[email protected]>2010-09-13 16:28:16 +0300
committerAndre Maasikas <[email protected]>2010-09-13 16:29:44 +0300
commit629842b44c40190239b2c7c0d0619af8c6687bbe (patch)
treea12db580ccf2436fe7c247ba05143bacfd424222 /src/mesa
parentc82beb436b8272c8eb69f4cac15106953fefe9a1 (diff)
r600c: eg: 256 float4 constants may need more than 256 bytes
Diffstat (limited to 'src/mesa')
-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,