mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 21:20:12 +01:00
i965: Move intel_context::has_hiz to brw_context.
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>
This commit is contained in:
parent
351d2add62
commit
3b80b147f6
4 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue