diff options
author | Eric Anholt <[email protected]> | 2012-05-21 09:30:35 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-05-23 10:18:27 -0700 |
commit | 5b226ad603302554f38e6b12a93bd2cf443d4b56 (patch) | |
tree | 3d189f28ef7612493360c4698b51b5916d882c2f /src/mesa/drivers/dri/i965/brw_blorp.cpp | |
parent | 7da9795070b1af746ab85692d4b65dbe8c4f2d76 (diff) |
i965: Add an interface for doing hiz ops from C code.
This required moving gen6_hiz_op, and I put it in intel_resolve_map.h
for the next commit.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.cpp b/src/mesa/drivers/dri/i965/brw_blorp.cpp index 994d646296c..fc9b2acbd70 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp.cpp @@ -98,6 +98,17 @@ brw_blorp_params::brw_blorp_params() { } +extern "C" { +void +intel_hiz_exec(struct intel_context *intel, struct intel_mipmap_tree *mt, + unsigned int level, unsigned int layer, gen6_hiz_op op) +{ + brw_hiz_op_params params(mt, level, layer, op); + brw_blorp_exec(intel, ¶ms); +} + +} /* extern "C" */ + void brw_blorp_exec(struct intel_context *intel, const brw_blorp_params *params) { |