Bug 109781 - iris: add support for L8A8 and similar formats
Summary: iris: add support for L8A8 and similar formats
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/Iris (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-25 15:20 UTC by Timur Kristóf
Modified: 2019-04-19 06:39 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Timur Kristóf 2019-02-25 15:20:12 UTC
Currently, support for A8L8 and similar formats in iris is behind an "#if 0". Some Gallium Nine games have issues because of this. For example, the Witcher 1 uses a texture with the format D3DFMT_A8L8 (equivalent to PIPE_FORMAT_L8A8_SRGB) for its text rendering. Without A8L8 support all text is replaced by black rectangles.

Just removing the "#if 0" from iris_formats.c will fix the problem for the Witcher 1, though to properly support this format iris would need to also support it with blit and clear. Also note that nine does not have any "fallback" code in case A8L8 is not supported by the driver.

Relevant IRC log:
https://people.freedesktop.org/~cbrill/dri-log/?channel=intel-3d&date=2019-02-25 -> see the conversation at 08:39
Comment 1 Kenneth Graunke 2019-04-19 06:39:51 UTC
We fixed this a while back, so closing.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.