projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1df639
)
freedreno/ir3: fragz cannot be half precision
author
Rob Clark
<robdclark@gmail.com>
Tue, 31 Jan 2017 13:31:37 +0000
(08:31 -0500)
committer
Rob Clark
<robdclark@gmail.com>
Mon, 13 Mar 2017 14:33:07 +0000
(10:33 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
index 77d86855ddb774dfd2e5eb7d1c67b7e42c448278..bb3f66c2300d5ee15f751c906625bfcc5eaa6615 100644
(file)
--- a/
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
+++ b/
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
@@
-2428,8
+2428,14
@@
ir3_compile_shader_nir(struct ir3_compiler *compiler,
if (so->key.half_precision) {
for (i = 0; i < ir->noutputs; i++) {
struct ir3_instruction *out = ir->outputs[i];
+
if (!out)
continue;
+
+ /* if frag shader writes z, that needs to be full precision: */
+ if (so->outputs[i/4].slot == FRAG_RESULT_DEPTH)
+ continue;
+
out->regs[0]->flags |= IR3_REG_HALF;
/* output could be a fanout (ie. texture fetch output)
* in which case we need to propagate the half-reg flag