diff options
author | Kenneth Graunke <[email protected]> | 2013-06-28 19:26:07 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-03 10:48:14 -0700 |
commit | 7c5279e554ae19ab844798be8cc37a8bf25ecf12 (patch) | |
tree | 77edc83772bd15ae38b15b241ad1f982a656b5cf /src/mesa/drivers/dri/i965/intel_fbo.c | |
parent | 607338f1cbb063b1aeaf9d8120903a172c987411 (diff) |
i965: Move is_hiz_depth_format out of the vtable.
brw_is_hiz_depth_format() is the only implementation of this function,
so it makes sense to just call it directly.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_fbo.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index 9ef9b70fff5..a82fb41f598 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -441,8 +441,7 @@ intel_renderbuffer_update_wrapper(struct intel_context *intel, intel_renderbuffer_set_draw_offset(irb); - if (mt->hiz_mt == NULL && - intel->vtbl.is_hiz_depth_format(intel, rb->Format)) { + if (mt->hiz_mt == NULL && brw_is_hiz_depth_format(intel, rb->Format)) { intel_miptree_alloc_hiz(intel, mt); if (!mt->hiz_mt) return false; @@ -862,7 +861,7 @@ intel_renderbuffer_move_to_temp(struct intel_context *intel, irb->mt->num_samples, INTEL_MIPTREE_TILING_ANY); - if (intel->vtbl.is_hiz_depth_format(intel, new_mt->format)) { + if (brw_is_hiz_depth_format(intel, new_mt->format)) { intel_miptree_alloc_hiz(intel, new_mt); } |