diff options
author | Chad Versace <[email protected]> | 2011-09-20 13:43:17 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-10-18 11:42:54 -0700 |
commit | 7b0f748efa5af84668cc3609a0070163bfa22607 (patch) | |
tree | e6ec66bf1d1992271e1c060b77f7187340042791 /src/mesa/drivers/dri/i915 | |
parent | b393fa91676aba0883d8f5260bd2910777aceb11 (diff) |
intel: Add HiZ operations to intel_context::vtbl for all drivers
Add the following to the vtbl:
hiz_resolve_depthbuffer
hiz_resolve_hizbuffer
For all drivers for which HiZ is not enabled, the methods are set to be
no-ops. If HiZ is enabled, the methods are currently to set to empty
stubs.
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-rw-r--r-- | src/mesa/drivers/dri/i915/i830_vtbl.c | 9 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_vtbl.c | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/i830_vtbl.c b/src/mesa/drivers/dri/i915/i830_vtbl.c index d29f9799a86..b30f9812e63 100644 --- a/src/mesa/drivers/dri/i915/i830_vtbl.c +++ b/src/mesa/drivers/dri/i915/i830_vtbl.c @@ -886,6 +886,13 @@ i830_is_hiz_depth_format(struct intel_context *intel, gl_format format) } void +i830_hiz_resolve_noop(struct intel_context *intel, + struct intel_region *region) +{ + /* empty */ +} + +void i830InitVtbl(struct i830_context *i830) { i830->intel.vtbl.check_vertex_size = i830_check_vertex_size; @@ -903,4 +910,6 @@ i830InitVtbl(struct i830_context *i830) i830->intel.vtbl.invalidate_state = i830_invalidate_state; i830->intel.vtbl.render_target_supported = i830_render_target_supported; i830->intel.vtbl.is_hiz_depth_format = i830_is_hiz_depth_format; + i830->intel.vtbl.hiz_resolve_depthbuffer = i830_hiz_resolve_noop; + i830->intel.vtbl.hiz_resolve_hizbuffer = i830_hiz_resolve_noop; } diff --git a/src/mesa/drivers/dri/i915/i915_vtbl.c b/src/mesa/drivers/dri/i915/i915_vtbl.c index 072a692767a..c73bee41604 100644 --- a/src/mesa/drivers/dri/i915/i915_vtbl.c +++ b/src/mesa/drivers/dri/i915/i915_vtbl.c @@ -852,6 +852,13 @@ i915_is_hiz_depth_format(struct intel_context *intel, return false; } +void +i915_hiz_resolve_noop(struct intel_context *intel, + struct intel_region *region) +{ + /* empty */ +} + static void i915_invalidate_state(struct intel_context *intel, GLuint new_state) { @@ -880,4 +887,6 @@ i915InitVtbl(struct i915_context *i915) i915->intel.vtbl.invalidate_state = i915_invalidate_state; i915->intel.vtbl.render_target_supported = i915_render_target_supported; i915->intel.vtbl.is_hiz_depth_format = i915_is_hiz_depth_format; + i915->intel.vtbl.hiz_resolve_depthbuffer = i915_hiz_resolve_noop; + i915->intel.vtbl.hiz_resolve_hizbuffer = i915_hiz_resolve_noop; } |