diff options
author | Brian <brian@i915.localnet.net> | 2007-08-08 12:02:52 -0600 |
---|---|---|
committer | Brian <brian@i915.localnet.net> | 2007-08-08 12:04:08 -0600 |
commit | 267cf16e066f548a33c7b5f7c73deb59039d9b3d (patch) | |
tree | 0a34fbbe0960454869dd8f8f047fa5b67f07ceb7 /src/mesa/pipe/tgsi | |
parent | c8cc1e86f68a54198e3136dcd198a252f6d7e8f2 (diff) |
very simple texture cache implementation
Diffstat (limited to 'src/mesa/pipe/tgsi')
-rw-r--r-- | src/mesa/pipe/tgsi/core/tgsi_exec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/pipe/tgsi/core/tgsi_exec.h b/src/mesa/pipe/tgsi/core/tgsi_exec.h index 2ad4b965bd..fb11eec777 100644 --- a/src/mesa/pipe/tgsi/core/tgsi_exec.h +++ b/src/mesa/pipe/tgsi/core/tgsi_exec.h @@ -21,6 +21,8 @@ struct tgsi_exec_vector union tgsi_exec_channel xyzw[4]; }; +#define SAMPLER_CACHE_SIZE 8 + struct tgsi_sampler { const struct pipe_sampler_state *state; @@ -28,6 +30,9 @@ struct tgsi_sampler void (*get_sample)(struct tgsi_sampler *sampler, const GLfloat strq[4], GLfloat lambda, GLfloat rgba[4]); void *pipe; /*XXX temporary*/ + + GLint cache_x, cache_y; + GLfloat cache[SAMPLER_CACHE_SIZE][SAMPLER_CACHE_SIZE][4]; }; struct tgsi_exec_labels |