diff options
author | Jason Ekstrand <[email protected]> | 2019-12-03 20:29:15 -0600 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2020-01-04 12:25:54 -0800 |
commit | 95cc5438ebfca436ceb6fd87b6b32c943b088340 (patch) | |
tree | de668494780ef5e18a224a363d4c311010671db1 /src/mesa/drivers | |
parent | 4a1093005cf96d98fdbc23c031d1b1deac5ce37a (diff) |
blorp: Allow reading with HiZ
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index 0cc7922e6e5..873c1a6c1c8 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -299,6 +299,12 @@ brw_blorp_blit_miptrees(struct brw_context *brw, dst_level, dst_layer, dst_x0, dst_y0, dst_x1, dst_y1, mirror_x, mirror_y); + if (src_format == MESA_FORMAT_NONE) + src_format = src_mt->format; + + if (dst_format == MESA_FORMAT_NONE) + dst_format = dst_mt->format; + if (!decode_srgb) src_format = _mesa_get_srgb_format_linear(src_format); |