diff options
author | Neha Bhende <[email protected]> | 2017-07-20 13:59:36 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-07-22 13:18:56 -0600 |
commit | acfb1583a560339b500a94bc13bf73675e7ed422 (patch) | |
tree | 3e7cd84f3b0162a54efcd2e2fb03845474943fb0 /src/gallium/drivers/svga/svga_shader.h | |
parent | dc62ddfb39e2287f1376df94e15bf108a73f12b0 (diff) |
svga: fix unnormalized->normalized texture coordinate conversion
Sometimes, converting unnormalized coordinates to normalized
coordinates requires an epsilon value to produce the right texels with
nearest filtering. Adding 0.0001 to the coordinates when the min/mag
filter is nearest fixes the issue.
Fixes piglit test fbo-blit-scaled-linear
Tested with mtt-piglit, mtt-glretrace
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_shader.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_shader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_shader.h b/src/gallium/drivers/svga/svga_shader.h index ec116c031d5..a594d120f84 100644 --- a/src/gallium/drivers/svga/svga_shader.h +++ b/src/gallium/drivers/svga/svga_shader.h @@ -97,6 +97,7 @@ struct svga_compile_key unsigned compare_mode:1; unsigned compare_func:3; unsigned unnormalized:1; + unsigned texel_bias:1; unsigned width_height_idx:5; /**< texture unit */ unsigned is_array:1; unsigned sprite_texgen:1; |