i965: Move intel_context::has_hiz to brw_context.
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 9c242a0d0f24bf231f27d4f73ff8fac4e3531f12..52583ce3d4a45640e29e9c71ae1446067321b793 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 a1215eedf9252382dd48c37d6f569c70ab2801c8..660c3644964d9e06e2debaf44da0d271b118768c 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 fee68b60c9b92cfdff53d15b0903ff2f8c59d8d4..47e613ac1664af36c25ec4d9be135f77a0476c0b 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 3ca78c989f3ed5734dc55a63ea25cf1253b56fa4..ef26c3e74bb16cbf013ec6b717d34b217901ba48 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;
 };