mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
i965/gen9: Setup MCS for compressed texture surfaces
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
1a05aeeb1c
commit
683dda0083
1 changed files with 5 additions and 4 deletions
|
|
@ -249,11 +249,12 @@ gen8_emit_texture_surface_state(struct brw_context *brw,
|
|||
pitch = mt->pitch;
|
||||
}
|
||||
|
||||
/* The MCS is not uploaded for single-sampled surfaces because the color
|
||||
* buffer should always have been resolved before it is used as a texture
|
||||
* so there is no need for it.
|
||||
/* Prior to Gen9, MCS is not uploaded for single-sampled surfaces because
|
||||
* the color buffer should always have been resolved before it is used as
|
||||
* a texture so there is no need for it. On Gen9 it will be uploaded when
|
||||
* the surface is losslessly compressed (CCS_E).
|
||||
*/
|
||||
if (mt->num_samples <= 1) {
|
||||
if (mt->num_samples <= 1 && aux_mode != GEN9_SURFACE_AUX_MODE_CCS_E) {
|
||||
aux_mt = NULL;
|
||||
aux_mode = GEN8_SURFACE_AUX_MODE_NONE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue