panfrost: Set "shader modifies coverage?" flag

Principally when DISCARD is used.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7081>
This commit is contained in:
Alyssa Rosenzweig
2020-10-08 19:59:15 -04:00
parent 3f919a7269
commit 0bfc7cbe64
2 changed files with 2 additions and 0 deletions
@@ -83,6 +83,7 @@ pan_prepare_bifrost_props(struct panfrost_shader_state *state,
state->properties.unknown = 0x950020; /* XXX */
state->properties.uniform_buffer_count = state->ubo_count;
state->properties.helper_invocation_enable = state->helper_invocations;
state->properties.shader_modifies_coverage = state->can_discard;
pan_prepare(&state->preload, PRELOAD);
state->preload.uniform_count = state->uniform_count;
+1
View File
@@ -639,6 +639,7 @@
<field name="Full thread" size="1" start="13" type="bool" default="false"/>
<field name="Reads tilebuffer" size="1" start="14" type="bool" default="false"/>
<field name="Work register count" size="5" start="16" type="uint"/>
<field name="Shader modifies coverage" size="1" start="16" type="bool"/>
<field name="Allow forward pixel to kill" size="1" start="19" type="bool" default="false"/>
<field name="Allow forward pixel to be killed" size="1" start="20" type="bool" default="false"/>
<field name="Pixel kill operation" size="2" start="21" type="Pixel Kill" default="Force early"/>