mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 06:40:27 +01:00
Fix hardware ROP state handling (Roland Scheidegger)
This commit is contained in:
parent
4d859f73fc
commit
78bb0803cf
2 changed files with 6 additions and 6 deletions
|
|
@ -137,7 +137,7 @@ static void r200BlendEquation( GLcontext *ctx, GLenum mode )
|
|||
|
||||
R200_STATECHANGE( rmesa, ctx );
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_BLENDCNTL] = b;
|
||||
if ( ctx->Color.ColorLogicOpEnabled ) {
|
||||
if ( ctx->Color._LogicOpEnabled ) {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] |= R200_ROP_ENABLE;
|
||||
} else {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] &= ~R200_ROP_ENABLE;
|
||||
|
|
@ -1706,7 +1706,7 @@ static void r200Enable( GLcontext *ctx, GLenum cap, GLboolean state )
|
|||
} else {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] &= ~R200_ALPHA_BLEND_ENABLE;
|
||||
}
|
||||
if ( ctx->Color.ColorLogicOpEnabled ) {
|
||||
if ( ctx->Color._LogicOpEnabled ) {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] |= R200_ROP_ENABLE;
|
||||
} else {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] &= ~R200_ROP_ENABLE;
|
||||
|
|
@ -1829,7 +1829,7 @@ static void r200Enable( GLcontext *ctx, GLenum cap, GLboolean state )
|
|||
|
||||
case GL_COLOR_LOGIC_OP:
|
||||
R200_STATECHANGE( rmesa, ctx );
|
||||
if ( state ) {
|
||||
if ( ctx->Color._LogicOpEnabled ) {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] |= R200_ROP_ENABLE;
|
||||
} else {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] &= ~R200_ROP_ENABLE;
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ static void radeonBlendEquation( GLcontext *ctx, GLenum mode )
|
|||
if ( !fallback ) {
|
||||
RADEON_STATECHANGE( rmesa, ctx );
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_BLENDCNTL] = b;
|
||||
if ( ctx->Color.ColorLogicOpEnabled ) {
|
||||
if ( ctx->Color._LogicOpEnabled ) {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] |= RADEON_ROP_ENABLE;
|
||||
} else {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] &= ~RADEON_ROP_ENABLE;
|
||||
|
|
@ -1684,7 +1684,7 @@ static void radeonEnable( GLcontext *ctx, GLenum cap, GLboolean state )
|
|||
} else {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] &= ~RADEON_ALPHA_BLEND_ENABLE;
|
||||
}
|
||||
if ( ctx->Color.ColorLogicOpEnabled ) {
|
||||
if ( ctx->Color._LogicOpEnabled ) {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] |= RADEON_ROP_ENABLE;
|
||||
} else {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] &= ~RADEON_ROP_ENABLE;
|
||||
|
|
@ -1822,7 +1822,7 @@ static void radeonEnable( GLcontext *ctx, GLenum cap, GLboolean state )
|
|||
|
||||
case GL_COLOR_LOGIC_OP:
|
||||
RADEON_STATECHANGE( rmesa, ctx );
|
||||
if ( state ) {
|
||||
if ( ctx->Color._LogicOpEnabled ) {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] |= RADEON_ROP_ENABLE;
|
||||
} else {
|
||||
rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] &= ~RADEON_ROP_ENABLE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue