i965: Move intel_context::has_hiz to brw_context. 15/7415/1
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 4 Jul 2013 19:45:39 +0000 (12:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 9 Jul 2013 21:09:29 +0000 (14:09 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Chris Forbes <chrisf@ijw.co.nz>
Acked-by: Paul Berry <stereotype441@gmail.com>
Acked-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_surface_formats.c
src/mesa/drivers/dri/i965/intel_context.c
src/mesa/drivers/dri/i965/intel_context.h

index 9c242a0..52583ce 100644 (file)
@@ -876,6 +876,7 @@ struct brw_context
    uint32_t max_gtt_map_object_size;
 
    bool emit_state_always;
+   bool has_hiz;
    bool has_swizzling;
    bool has_surface_tile_offset;
    bool has_compr4;
index a1215ee..660c364 100644 (file)
@@ -735,8 +735,7 @@ translate_tex_format(struct brw_context *brw,
 bool
 brw_is_hiz_depth_format(struct brw_context *brw, gl_format format)
 {
-   struct intel_context *intel = &brw->intel;
-   if (!intel->has_hiz)
+   if (!brw->has_hiz)
       return false;
 
    switch (format) {
index fee68b6..47e613a 100644 (file)
@@ -497,7 +497,7 @@ intelInitContext(struct brw_context *brw,
 
    intel->has_separate_stencil = brw->intelScreen->hw_has_separate_stencil;
    intel->must_use_separate_stencil = brw->intelScreen->hw_must_use_separate_stencil;
-   intel->has_hiz = intel->gen >= 6;
+   brw->has_hiz = intel->gen >= 6;
    intel->has_llc = brw->intelScreen->hw_has_llc;
    brw->has_swizzling = brw->intelScreen->hw_has_swizzling;
 
@@ -576,7 +576,7 @@ intelInitContext(struct brw_context *brw,
    intel_fbo_init(brw);
 
    if (!driQueryOptionb(&brw->optionCache, "hiz")) {
-       intel->has_hiz = false;
+       brw->has_hiz = false;
        /* On gen6, you can only do separate stencil with HIZ. */
        if (intel->gen == 6)
          intel->has_separate_stencil = false;
index 3ca78c9..ef26c3e 100644 (file)
@@ -123,7 +123,6 @@ struct intel_context
    bool is_g4x;
    bool has_separate_stencil;
    bool must_use_separate_stencil;
-   bool has_hiz;
    bool has_llc;
 };