diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-23 16:52:40 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-25 06:34:21 -0700 |
commit | bab4f6c724d384cfee7e7f98ff3b52648850641d (patch) | |
tree | 195f09a7a369a14ecb3228fac1a5b576440e4c0c /src/gallium | |
parent | 48991c7a1f07dc00821e3505b5d13ffdd1143e07 (diff) |
panfrost: Use nir_gather_info information about discards
No need to track this ourselves!
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_assemble.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_assemble.c b/src/gallium/drivers/panfrost/pan_assemble.c index 334ea83305a..75158089c88 100644 --- a/src/gallium/drivers/panfrost/pan_assemble.c +++ b/src/gallium/drivers/panfrost/pan_assemble.c @@ -91,7 +91,7 @@ panfrost_shader_compile(struct panfrost_context *ctx, struct mali_shader_meta *m meta->varying_count = program.varying_count; meta->midgard1.work_count = program.work_register_count; - state->can_discard = program.can_discard; + state->can_discard = s->info.fs.uses_discard; state->writes_point_size = program.writes_point_size; state->reads_point_coord = false; state->helper_invocations = s->info.fs.needs_helper_invocations; |