diff options
author | Nicolai Hähnle <[email protected]> | 2017-09-17 18:03:04 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-09-20 15:43:13 +0200 |
commit | 704ddbcdf693079d417d831abe073caad008ab01 (patch) | |
tree | 66bd63d66d33947114254ede4f06a5e3d1f54836 /src/gallium/drivers/llvmpipe/lp_screen.c | |
parent | 87f7c7bd6566dbd95214df9b058bca5e6573374e (diff) |
radeonsi: set MIP_POINT_PRECLAMP to 0
This fixes a bug with nearest ("point") mip selection when the fractional
part of max_lod is in (0.5,1). In this case, the spec mandates that
we still select the mip level ceil(max_lod) in the clamping case. However,
MIP_POINT_PRECLAMP will clamp before the mip selection, which is wrong.
Supposedly this setting was originally copied from the closed Vulkan
driver, but as far as I can tell, closed Vulkan was actually changed back
recently :)
Fixes dEQP-GLES3.functional.texture.mipmap.2d.max_lod.{nearest,linear}_nearest
Fixes: f7420ef5b464 ("radeonsi: enable some sampler fields to match the closed driver")
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_screen.c')
0 files changed, 0 insertions, 0 deletions