diff options
author | Stéphane Marchesin <[email protected]> | 2013-09-04 12:03:10 -0700 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2013-09-04 12:11:02 -0700 |
commit | 4e861ac4a1f1bdbd28f66e3f15eb45aa45a47bad (patch) | |
tree | fa8bbe4dc6406af2d962d56501763939a742689b /src/gallium/drivers/i915/i915_fpc.h | |
parent | a974b915b6035d93f1739793094157272444cd1c (diff) |
i915g: Add more optimizations
This patch adds liveness analysis to i915g and a couple
optimizations which benefit from it. One interesting
optimization turns (fake) indirect texture accesses into direct
texture accesses (the i915 supports a maximum of 4 indirect
texture accesses). Among other things this fixes a bunch of
piglit tests.
Diffstat (limited to 'src/gallium/drivers/i915/i915_fpc.h')
-rw-r--r-- | src/gallium/drivers/i915/i915_fpc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_fpc.h b/src/gallium/drivers/i915/i915_fpc.h index e915822f4a9..ff740d41617 100644 --- a/src/gallium/drivers/i915/i915_fpc.h +++ b/src/gallium/drivers/i915/i915_fpc.h @@ -322,6 +322,8 @@ struct i915_token_list extern struct i915_token_list* i915_optimize(const struct tgsi_token *tokens); -extern void i915_optimize_free(struct i915_token_list* tokens); +extern void i915_optimize_free(struct i915_token_list *tokens); + +extern uint i915_num_coords(uint tex); #endif |