mesa/src
Roland Scheidegger 886626960b llvmpipe, gallivm: implement lod queries (LODQ opcode)
This uses all the existing code to calculate lod values for mip linear
filtering. Though we'll have to disable the simplifications (if we know some
parts of the lod calculation won't actually matter for filtering purposes due
to mip clamps etc.). For better or worse, we'll also disable lod calculation
hacks (mostly should make a difference for cube maps) always - the issue with
per-pixel lod being difficult is mostly because we then have different mipmaps
needed for the actual texel fetch, which isn't a problem with lodq.
We still use approximation for the log2 - for that reason I believe the float
part of the lod is only accurate to about 4-5 bits (and one bit less with 1d
textures actually) which is hopefully good enough (though d3d10 technically
requires 6 bits - could use quadratic interpolation instead of linear to get
8 bits or so).
Since lodq requires unclamped lod, we also have to move some sampler key
calculations to texture sampling code - even if we know we're going to access
mipmap 0 we still have to calculate lod and apply lod_bias for lodq.

Passes piglit ARB_texture_query_lod tests (after having fixed the test).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2017-09-20 21:18:54 +02:00
..
amd radv: do not update the number of scissors in vkCmdSetScissor() 2017-09-20 10:27:32 +02:00
broadcom broadcom/genxml: Set up enums for VC5 blending, depth, stencil, and prims. 2017-09-19 10:40:55 -07:00
compiler glsl/linker: fix output variable overlap check 2017-09-20 15:35:57 +02:00
egl egl: fix build fallouts from 1d0be5b3fe 2017-09-19 21:27:01 +01:00
gallium llvmpipe, gallivm: implement lod queries (LODQ opcode) 2017-09-20 21:18:54 +02:00
gbm configure.ac: split the wayland client/server confusion 2017-09-19 19:02:34 +01:00
getopt
glx glx: turn LIBGL_NO_DRAWARRAYS into a boolean 2017-09-12 13:53:12 +01:00
gtest
hgl
intel anv: Fix descriptors copying 2017-09-20 13:14:49 +02:00
loader loader/dri3: Make sure we invalidate a drawable on size change 2017-09-07 12:43:29 +02:00
mapi mapi/gen: remove shebang from the marshal generator scripts 2017-08-26 11:20:08 +01:00
mesa i965: Fix duplication of DRI images 2017-09-20 07:07:05 -07:00
util radeonsi: allow out-of-order rasterization in commutative blending cases 2017-09-18 11:25:20 +02:00
vulkan configure.ac: split the wayland client/server confusion 2017-09-19 19:02:34 +01:00
Makefile.am automake: adjust wayland-drm comment 2017-09-19 19:02:34 +01:00
SConscript build: Convert git_sha1_gen script to Python. 2017-08-01 15:24:39 +01:00