mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
i965: Fix BLORP sRGB MSAA overrides to cope with X vs. A formats.
The logic in brw_blorp_surface_info::set uses brw_format_for_mesa_format for source surfaces, and brw->render_target_format[] for destination surfaces. We should do the same in the sRGB MSAA overrides. Currently, this isn't a problem, since SRGB MSAA buffers are all RGBA. The next commit will introduce RGBX SRGB MSAA buffers, at which point we need to get the RGBX -> RGBA format overrides for rendering right. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
This commit is contained in:
parent
1f1102c834
commit
51b9382da8
1 changed files with 3 additions and 2 deletions
|
|
@ -1868,8 +1868,9 @@ brw_blorp_blit_params::brw_blorp_blit_params(struct brw_context *brw,
|
|||
_mesa_get_format_color_encoding(dst_mt->format) == GL_SRGB &&
|
||||
_mesa_get_srgb_format_linear(src_mt->format) ==
|
||||
_mesa_get_srgb_format_linear(dst_mt->format)) {
|
||||
dst.brw_surfaceformat = brw_format_for_mesa_format(dst_mt->format);
|
||||
src.brw_surfaceformat = dst.brw_surfaceformat;
|
||||
assert(brw->format_supported_as_render_target[dst_mt->format]);
|
||||
dst.brw_surfaceformat = brw->render_target_format[dst_mt->format];
|
||||
src.brw_surfaceformat = brw_format_for_mesa_format(dst_mt->format);
|
||||
}
|
||||
|
||||
/* When doing a multisample resolve of a GL_LUMINANCE32F or GL_INTENSITY32F
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue