mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-07 14:48:17 +02:00
radeon: move YUV on first texunit check after hw state is setup
This commit is contained in:
parent
5325f86240
commit
7a1dbcabf3
1 changed files with 4 additions and 5 deletions
|
|
@ -985,15 +985,14 @@ static GLboolean radeon_validate_texture(GLcontext *ctx, struct gl_texture_objec
|
|||
if (!radeon_validate_texture_miptree(ctx, texObj))
|
||||
return GL_FALSE;
|
||||
|
||||
/* yuv conversion only works in first unit */
|
||||
if (unit != 0 && (t->pp_txfilter & RADEON_YUV_TO_RGB))
|
||||
return GL_FALSE;
|
||||
|
||||
|
||||
ret = setup_hardware_state(rmesa, t, unit);
|
||||
if (ret == GL_FALSE)
|
||||
return GL_FALSE;
|
||||
|
||||
/* yuv conversion only works in first unit */
|
||||
if (unit != 0 && (t->pp_txfilter & RADEON_YUV_TO_RGB))
|
||||
return GL_FALSE;
|
||||
|
||||
RADEON_STATECHANGE( rmesa, ctx );
|
||||
rmesa->hw.ctx.cmd[CTX_PP_CNTL] |=
|
||||
(RADEON_TEX_0_ENABLE | RADEON_TEX_BLEND_0_ENABLE) << unit;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue