summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_surface_formats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_surface_formats.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_surface_formats.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_surface_formats.c b/src/mesa/drivers/dri/i965/brw_surface_formats.c
index a1215eedf92..660c3644964 100644
--- a/src/mesa/drivers/dri/i965/brw_surface_formats.c
+++ b/src/mesa/drivers/dri/i965/brw_surface_formats.c
@@ -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) {