diff options
author | Dave Airlie <[email protected]> | 2011-08-29 14:35:16 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-09-02 10:48:09 +0100 |
commit | 0b666106c5f75b581ef1ebeb354c29a00400404f (patch) | |
tree | d8c2a054a0002181f10e2694855782446d351884 /src/mesa/state_tracker/st_extensions.c | |
parent | 2083a276eb270b748d1c2668eb9faa5aadc8e700 (diff) |
gallium: add caps for MIN/MAX texel offsets.
As per Brian's suggestion, add caps for drivers that support texture
offsets to advertise a min/max via TGSI, also use it in the state tracker.
Signed-off-by: Dave Airlie <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
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 322dbbfd51d..aa7f3b52cb2 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -203,6 +203,9 @@ void st_init_limits(struct st_context *st) /* XXX we'll need a better query here someday */ if (screen->get_param(screen, PIPE_CAP_GLSL)) { + c->MinProgramTexelOffset = screen->get_param(screen, PIPE_CAP_MIN_TEXEL_OFFSET); + c->MaxProgramTexelOffset = screen->get_param(screen, PIPE_CAP_MAX_TEXEL_OFFSET); + c->GLSLVersion = 120; } } |