mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 22:40:09 +01:00
iris: Drop RGBX -> RGBA for storage image usages
GLSL doesn't expose RGB/RGBX image formats, so this isn't needed.
This commit is contained in:
parent
6921588d54
commit
fce089c8a2
1 changed files with 3 additions and 6 deletions
|
|
@ -371,13 +371,10 @@ iris_format_for_usage(const struct gen_device_info *devinfo,
|
|||
|
||||
enum isl_format format = iris_isl_format_for_pipe_format(pformat);
|
||||
|
||||
/* Convert RGBX into RGBA for rendering or typed image access. */
|
||||
/* Convert RGBX into RGBA for rendering */
|
||||
if (isl_format_is_rgbx(format) &&
|
||||
(((usage & ISL_SURF_USAGE_RENDER_TARGET_BIT) &&
|
||||
!isl_format_supports_rendering(devinfo, format)) ||
|
||||
((usage & ISL_SURF_USAGE_STORAGE_BIT) &&
|
||||
!(isl_format_supports_typed_writes(devinfo, format) &&
|
||||
isl_format_supports_typed_reads(devinfo, format))))) {
|
||||
(usage & ISL_SURF_USAGE_RENDER_TARGET_BIT) &&
|
||||
!isl_format_supports_rendering(devinfo, format)) {
|
||||
format = isl_format_rgbx_to_rgba(format);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue