mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
intel: fix TFP at 16-bpp
don't ask why I had to debug this. tested to fix g-s and kwin at 16-bpp on Ironlake. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
d6c5ad52b2
commit
7b6424143d
1 changed files with 11 additions and 6 deletions
|
|
@ -341,13 +341,18 @@ intelSetTexBuffer2(__DRIcontext *pDRICtx, GLint target,
|
|||
if (!rb || !rb->mt)
|
||||
return;
|
||||
|
||||
if (texture_format == __DRI_TEXTURE_FORMAT_RGB) {
|
||||
if (rb->mt->cpp == 4) {
|
||||
if (texture_format == __DRI_TEXTURE_FORMAT_RGB) {
|
||||
internalFormat = GL_RGB;
|
||||
texFormat = MESA_FORMAT_XRGB8888;
|
||||
}
|
||||
else {
|
||||
internalFormat = GL_RGBA;
|
||||
texFormat = MESA_FORMAT_ARGB8888;
|
||||
}
|
||||
} else if (rb->mt->cpp == 2) {
|
||||
internalFormat = GL_RGB;
|
||||
texFormat = MESA_FORMAT_XRGB8888;
|
||||
}
|
||||
else {
|
||||
internalFormat = GL_RGBA;
|
||||
texFormat = MESA_FORMAT_ARGB8888;
|
||||
texFormat = MESA_FORMAT_RGB565;
|
||||
}
|
||||
|
||||
_mesa_lock_texture(&intel->ctx, texObj);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue