diff options
author | Brian <[email protected]> | 2008-02-05 16:32:15 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-06 09:35:38 -0700 |
commit | 4650b35846e8e87fb0d74573a5f66452bb449b4b (patch) | |
tree | 2fdc925f9ffd00e7196993a1177504aedd6189e1 /src/mesa/state_tracker/st_extensions.c | |
parent | af6b12cc76b40c86f3b144a7f5cd3ef1278863d0 (diff) |
gallium: add bitmap/drawpixels texcoord bias support
The state tracker will call pipe->get_paramf(PIPE_CAP_BITMAP_TEXCOORD_BIAS)
to get a bias factor for adjusting the texcoords used in bitmap/drawpixels.
This allows us to compensate for small differences in rasterization from
one device to another.
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 0157bdd6b32..97d28d77c4b 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -106,6 +106,9 @@ void st_init_limits(struct st_context *st) c->MaxTextureLodBias = pipe->get_paramf(pipe, PIPE_CAP_MAX_TEXTURE_LOD_BIAS); + + st->bitmap_texcoord_bias + = pipe->get_paramf(pipe, PIPE_CAP_BITMAP_TEXCOORD_BIAS); } |