diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2017-01-21 09:34:44 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2018-05-09 11:16:33 -0700 |
commit | 4e26e3dea9d11b2fe88d829488e1295161e68cbb (patch) | |
tree | f2e45260de469cd36fb2a46bd536cf7a0c4d4557 /src/intel/blorp | |
parent | 08cd834996377634cab8c49c50ad2dc66600fa45 (diff) | |
download | mesa-4e26e3dea9d11b2fe88d829488e1295161e68cbb.tar.gz mesa-4e26e3dea9d11b2fe88d829488e1295161e68cbb.tar.bz2 mesa-4e26e3dea9d11b2fe88d829488e1295161e68cbb.zip |
intel/blorp: Silently convert RGBX destination formats to RGBA
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/intel/blorp')
-rw-r--r-- | src/intel/blorp/blorp_blit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index 8b64cd7bad2..cd2d3b43157 100644 --- a/src/intel/blorp/blorp_blit.c +++ b/src/intel/blorp/blorp_blit.c @@ -1896,6 +1896,10 @@ try_blorp_blit(struct blorp_batch *batch, wm_prog_key->dst_rgb = true; wm_prog_key->need_dst_offset = true; + } else if (isl_format_is_rgbx(params->dst.view.format)) { + /* We can handle RGBX formats easily enough by treating them as RGBA */ + params->dst.view.format = + isl_format_rgbx_to_rgba(params->dst.view.format); } else if (params->dst.view.format == ISL_FORMAT_R24_UNORM_X8_TYPELESS) { wm_prog_key->dst_format = params->dst.view.format; params->dst.view.format = ISL_FORMAT_R32_UNORM; |