From 629842b44c40190239b2c7c0d0619af8c6687bbe Mon Sep 17 00:00:00 2001 From: Andre Maasikas Date: Mon, 13 Sep 2010 16:28:16 +0300 Subject: [PATCH] r600c: eg: 256 float4 constants may need more than 256 bytes --- src/mesa/drivers/dri/r600/evergreen_fragprog.c | 2 +- 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 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, -- 2.30.2