mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 11:50:09 +01:00
i965/gen8: Initialize aux_mode to GEN8_SURFACE_AUX_MODE_NONE
GEN8_SURFACE_AUX_MODE_NONE is 0, so this is a no-op. Yet, this also makes it clear that we can compare aux_mode to the other GEN8_SURFACE_AUX_MODE_ values. We will want to compare to GEN8_SURFACE_AUX_MODE_HIZ. v2: Some very minor cherry-pick conflicts due to moving it around in the series. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
This commit is contained in:
parent
18f688d62a
commit
141ef75569
1 changed files with 2 additions and 2 deletions
|
|
@ -210,7 +210,7 @@ gen8_emit_texture_surface_state(struct brw_context *brw,
|
|||
{
|
||||
const unsigned depth = max_layer - min_layer;
|
||||
struct intel_mipmap_tree *aux_mt = NULL;
|
||||
uint32_t aux_mode = 0;
|
||||
uint32_t aux_mode = GEN8_SURFACE_AUX_MODE_NONE;
|
||||
uint32_t mocs_wb = brw->gen >= 9 ? SKL_MOCS_WB : BDW_MOCS_WB;
|
||||
int surf_index = surf_offset - &brw->wm.base.surf_offset[0];
|
||||
unsigned tiling_mode, pitch;
|
||||
|
|
@ -425,7 +425,7 @@ gen8_update_renderbuffer_surface(struct brw_context *brw,
|
|||
struct intel_renderbuffer *irb = intel_renderbuffer(rb);
|
||||
struct intel_mipmap_tree *mt = irb->mt;
|
||||
struct intel_mipmap_tree *aux_mt = NULL;
|
||||
uint32_t aux_mode = 0;
|
||||
uint32_t aux_mode = GEN8_SURFACE_AUX_MODE_NONE;
|
||||
unsigned width = mt->logical_width0;
|
||||
unsigned height = mt->logical_height0;
|
||||
unsigned pitch = mt->pitch;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue