diff options
author | Michal Krol <[email protected]> | 2010-01-07 13:48:41 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-01-07 13:48:41 +0100 |
commit | 4440428faa82f01b4dfb4be89618be2aaf153abd (patch) | |
tree | f52f00c4e06438bb722cc615318103407173a6cc /src/gallium/auxiliary/tgsi/tgsi_exec.h | |
parent | 4bfe1c955fe679547c8a03119d1681e33593c768 (diff) |
gallium: Fix texture sampling with explicit LOD in softpipe.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_exec.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_exec.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.h b/src/gallium/auxiliary/tgsi/tgsi_exec.h index 67853ed4fe4..59e3b445cc3 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.h +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.h @@ -72,6 +72,11 @@ struct tgsi_interp_coef float dady[NUM_CHANNELS]; }; +enum tgsi_sampler_control { + tgsi_sampler_lod_bias, + tgsi_sampler_lod_explicit +}; + /** * Information for sampling textures, which must be implemented * by code outside the TGSI executor. @@ -83,7 +88,8 @@ struct tgsi_sampler const float s[QUAD_SIZE], const float t[QUAD_SIZE], const float p[QUAD_SIZE], - const float lodbias[QUAD_SIZE], + const float c0[QUAD_SIZE], + enum tgsi_sampler_control control, float rgba[NUM_CHANNELS][QUAD_SIZE]); }; |