Matt Turner
a8f0960816
nir: Recognize product of open-coded pow()s.
...
Prevents regressions in the next commit.
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com >
2016-02-08 20:38:17 -08:00
Matt Turner
9f02e3ab03
nir: Add opt_algebraic rules for xor with zero.
...
instructions in affected programs: 668 -> 664 (-0.60%)
helped: 4
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com >
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com >
2016-02-08 20:38:17 -08:00
Francisco Jerez
cec6fe2ad8
vtn: Clean up acos implementation.
...
Parameterize build_asin() on the fit coefficients so the
implementation can be shared while still using different polynomials
for asin and acos. Also switch back to implementing acos in terms of
asin -- The improvement obtained from cancelling out the pi/2 terms
was negligible compared to the approximation error.
2016-02-08 15:23:43 -08:00
Francisco Jerez
f50a651726
nir/spirv: Create integer types of correct signedness.
...
vtn_handle_type() creates a signed type regardless of the value of the
signedness flag, which usually doesn't make much of a difference
except when the type is used as base sampled type of an image type,
what will cause the base type of the NIR image variable to be
inconsistent with its format and cause an assertion failure in the
back-end (most likely only reproducible on Gen7), and may change the
semantics of the image intrinsic subtly (e.g. UMIN may become IMIN).
2016-02-08 15:23:35 -08:00
Jason Ekstrand
9401516113
Merge remote-tracking branch 'mesa-public/master' into vulkan
2016-02-05 15:21:11 -08:00
Jason Ekstrand
741744f691
Merge commit mesa-public/master into vulkan
...
This pulls in the patches that move all of the compiler stuff around
2016-02-05 15:03:44 -08:00
Matt Turner
955d052058
nir: Add lowering support for unpacking opcodes.
...
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
2016-02-01 10:43:57 -08:00
Matt Turner
9b8786eba9
nir: Add lowering support for packing opcodes.
...
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
2016-02-01 10:43:57 -08:00
Matt Turner
68f8c5730b
nir: Add opcodes to extract bytes or words.
...
The uint versions zero extend while the int versions sign extend.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
2016-02-01 10:43:57 -08:00
Matt Turner
8709dc0713
glsl: Remove 2x16 half-precision pack/unpack opcodes.
...
i965/fs was the only consumer, and we're now doing the lowering in NIR.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
2016-02-01 10:43:57 -08:00
Matt Turner
9ce901058f
nir: Add lowering of nir_op_unpack_half_2x16.
...
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
2016-02-01 10:43:57 -08:00
Matt Turner
140a886c41
nir: Make argument order of unop_convert match binop_convert.
...
Strangely the return and parameter types were reversed.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
2016-02-01 10:43:57 -08:00
Emil Velikov
eb63640c1d
glsl: move to compiler/
...
Signed-off-by: Emil Velikov <emil.velikov@collabora.com >
Acked-by: Matt Turner <mattst88@gmail.com >
Acked-by: Jose Fonseca <jfonseca@vmware.com >
2016-01-26 16:08:33 +00:00
Emil Velikov
a39a8fbbaa
nir: move to compiler/
...
Signed-off-by: Emil Velikov <emil.velikov@collabora.com >
Acked-by: Matt Turner <mattst88@gmail.com >
Acked-by: Jose Fonseca <jfonseca@vmware.com >
2016-01-26 16:08:30 +00:00