diff options
author | Alex Deucher <[email protected]> | 2009-06-04 20:22:14 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2009-06-04 20:22:14 -0400 |
commit | 8c27d99eb84709013f420a7500ddfdef71ac7391 (patch) | |
tree | 574640d228f21e7a8b3dd97dc7b530f72ec9ddc9 /src/mesa/drivers/dri/r600/r700_fragprog.c | |
parent | b5914362300d7671ed5b5a86b51acacac6fb1abf (diff) |
re-arrange state structure
- split out renderbuffers
- split out shaders
- split our viewports
Only send the state needed.
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_fragprog.c')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_fragprog.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_fragprog.c b/src/mesa/drivers/dri/r600/r700_fragprog.c index cebb82d8532..0eea2567d56 100644 --- a/src/mesa/drivers/dri/r600/r700_fragprog.c +++ b/src/mesa/drivers/dri/r600/r700_fragprog.c @@ -293,7 +293,7 @@ GLboolean r700SetupFragmentProgram(GLcontext * ctx) (context->chipobj.MemUse)(context, fp->shadercode.buf->id); */ - r700->SQ_PGM_START_PS.u32All = 0; /* set from buffer obj */ + r700->ps.SQ_PGM_START_PS.u32All = 0; /* set from buffer obj */ unNumOfReg = fp->r700Shader.nRegs + 1; @@ -301,17 +301,17 @@ GLboolean r700SetupFragmentProgram(GLcontext * ctx) ui = ui ? unNumOfReg : ui; - SETfield(r700->SQ_PGM_RESOURCES_PS.u32All, ui, NUM_GPRS_shift, NUM_GPRS_mask); + SETfield(r700->ps.SQ_PGM_RESOURCES_PS.u32All, ui, NUM_GPRS_shift, NUM_GPRS_mask); - CLEARbit(r700->SQ_PGM_RESOURCES_PS.u32All, UNCACHED_FIRST_INST_bit); + CLEARbit(r700->ps.SQ_PGM_RESOURCES_PS.u32All, UNCACHED_FIRST_INST_bit); if(fp->r700Shader.uStackSize) /* we don't use branch for now, it should be zero. */ { - SETfield(r700->SQ_PGM_RESOURCES_PS.u32All, fp->r700Shader.uStackSize, + SETfield(r700->ps.SQ_PGM_RESOURCES_PS.u32All, fp->r700Shader.uStackSize, STACK_SIZE_shift, STACK_SIZE_mask); } - SETfield(r700->SQ_PGM_EXPORTS_PS.u32All, fp->r700Shader.exportMode, + SETfield(r700->ps.SQ_PGM_EXPORTS_PS.u32All, fp->r700Shader.exportMode, EXPORT_MODE_shift, EXPORT_MODE_mask); if(fp->r700Shader.killIsUsed) |