diff options
author | Andre Maasikas <amaasikas@gmail.com> | 2010-09-13 16:28:16 +0300 |
---|---|---|
committer | Andre Maasikas <amaasikas@gmail.com> | 2010-09-13 16:29:44 +0300 |
commit | 629842b44c40190239b2c7c0d0619af8c6687bbe (patch) | |
tree | a12db580ccf2436fe7c247ba05143bacfd424222 | |
parent | c82beb436b8272c8eb69f4cac15106953fefe9a1 (diff) |
r600c: eg: 256 float4 constants may need more than 256 bytes
-rw-r--r-- | src/mesa/drivers/dri/r600/evergreen_fragprog.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/r600/evergreen_vertprog.c | 2 |
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 fb1f53a364..7dcca8b146 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 291158009d..2bb055c5aa 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, |