mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 16:10:33 +01:00
i915g: Fix up the format mapping for DXT1_*RGB
We weren't wiring alpha to 1 like we should. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12367>
This commit is contained in:
parent
22ec89b66b
commit
12b248755e
2 changed files with 3 additions and 3 deletions
|
|
@ -426,7 +426,6 @@ spec@ext_packed_depth_stencil@fbo-depthstencil-gl_depth24_stencil8-clear,Fail
|
|||
spec@ext_packed_depth_stencil@fbo-stencil-gl_depth24_stencil8-blit,Fail
|
||||
spec@ext_packed_depth_stencil@texwrap formats bordercolor,Fail
|
||||
spec@ext_packed_depth_stencil@texwrap formats bordercolor@GL_DEPTH24_STENCIL8- border color only,Fail
|
||||
spec@ext_texture_compression_s3tc@s3tc-targeted,Fail
|
||||
spec@ext_texture_compression_s3tc@texwrap formats bordercolor,Fail
|
||||
spec@ext_texture_compression_s3tc@texwrap formats bordercolor@GL_COMPRESSED_RGBA_S3TC_DXT1_EXT- border color only,Fail
|
||||
spec@ext_texture_compression_s3tc@texwrap formats bordercolor@GL_COMPRESSED_RGBA_S3TC_DXT3_EXT- border color only,Fail
|
||||
|
|
|
|||
|
|
@ -219,10 +219,11 @@ translate_texture_format(enum pipe_format pipeFormat,
|
|||
#endif
|
||||
case PIPE_FORMAT_Z16_UNORM:
|
||||
return (MAPSURF_16BIT | MT_16BIT_L16);
|
||||
case PIPE_FORMAT_DXT1_RGBA:
|
||||
case PIPE_FORMAT_DXT1_SRGBA:
|
||||
case PIPE_FORMAT_DXT1_RGB:
|
||||
case PIPE_FORMAT_DXT1_SRGB:
|
||||
return (MAPSURF_COMPRESSED | MT_COMPRESS_DXT1_RGB);
|
||||
case PIPE_FORMAT_DXT1_RGBA:
|
||||
case PIPE_FORMAT_DXT1_SRGBA:
|
||||
return (MAPSURF_COMPRESSED | MT_COMPRESS_DXT1);
|
||||
case PIPE_FORMAT_DXT3_RGBA:
|
||||
case PIPE_FORMAT_DXT3_SRGBA:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue