diff options
author | Rob Clark <[email protected]> | 2013-10-31 09:59:49 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2013-11-01 20:19:42 -0400 |
commit | a53fe2221c3d48b3b1c8bdf4c2da33fe91ad7cda (patch) | |
tree | 4c0f7114b174a80b9bd7b10aeb3a922df8ab8956 /src/gallium/drivers/freedreno/freedreno_util.h | |
parent | 310fd5839cd5f221680de8a80ae97e099e0116b7 (diff) |
freedreno/a3xx/compiler: highp frag shader
Fixes use of full-precision in fragment shader (ie. don't clobber r0.x
since that can be used by future bary instructions for varying fetch).
And makes use of full-precision the default in fragment shader (but can
be overriden via FD_MESA_DEBUG=fraghalf).
Seems like half precision is often not enough for texture coordinates.
The blob compiler is clever enough to keep texture coords in full
precision registers while using half precision for everything else. But
we aren't quite that clever yet, so better to default to full precision.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_util.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_util.h b/src/gallium/drivers/freedreno/freedreno_util.h index a189e1aba5e..48d346eb35b 100644 --- a/src/gallium/drivers/freedreno/freedreno_util.h +++ b/src/gallium/drivers/freedreno/freedreno_util.h @@ -59,6 +59,8 @@ enum adreno_stencil_op fd_stencil_op(unsigned op); #define FD_DBG_DSCIS 0x10 #define FD_DBG_DIRECT 0x20 #define FD_DBG_DBYPASS 0x40 +#define FD_DBG_FRAGHALF 0x80 + extern int fd_mesa_debug; #define DBG(fmt, ...) \ |