diff options
author | Dave Airlie <[email protected]> | 2011-08-25 11:35:01 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-08-25 16:49:20 +0100 |
commit | 7f1b9ddd12e97ac57c4818646c17521bb0c2c358 (patch) | |
tree | e7b2532a47545108872af73189f143c2a672e870 /src/gallium/auxiliary/tgsi/tgsi_exec.h | |
parent | b9eb4d8a59699e233255113acafae220c3d8fe3c (diff) |
tgsi: add TXQ support. (v2)
this adds another callback in the sampler struct containing get_dims
entry point. This is used to query the driver for the texture resource
dimensions for the resource bound to the current sampler.
v2: remove unusued variable, fix indent
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_exec.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_exec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.h b/src/gallium/auxiliary/tgsi/tgsi_exec.h index 6c32ccff323..2162a071a0b 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.h +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.h @@ -90,6 +90,8 @@ struct tgsi_sampler const float c0[QUAD_SIZE], enum tgsi_sampler_control control, float rgba[NUM_CHANNELS][QUAD_SIZE]); + void (*get_dims)(struct tgsi_sampler *sampler, int level, + int dims[4]); }; #define TGSI_EXEC_NUM_TEMPS 128 |