projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b63371
)
v3d: Add support for GL_SAMPLE_ALPHA_TO_ONE.
author
Eric Anholt
<eric@anholt.net>
Tue, 3 Jul 2018 22:56:48 +0000
(15:56 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 5 Jul 2018 19:39:36 +0000
(12:39 -0700)
Fixes piglit ext_framebuffer_multisample-draw-buffers-alpha-to-one
src/broadcom/compiler/nir_to_vir.c
patch
|
blob
|
history
diff --git
a/src/broadcom/compiler/nir_to_vir.c
b/src/broadcom/compiler/nir_to_vir.c
index 8012d483a720cfa6d6f260522f904f3b203ef640..89e4bc9fafae7b27bd79e6959a9552957b5b096a 100644
(file)
--- a/
src/broadcom/compiler/nir_to_vir.c
+++ b/
src/broadcom/compiler/nir_to_vir.c
@@
-1030,6
+1030,9
@@
emit_frag_end(struct v3d_compile *c)
b = color[0];
}
+ if (c->fs_key->sample_alpha_to_one)
+ a = vir_uniform_f(c, 1.0);
+
if (c->fs_key->f32_color_rb & (1 << rt)) {
inst = vir_MOV_dest(c, vir_reg(QFILE_TLBU, 0), r);
inst->src[vir_get_implicit_uniform_src(inst)] =