v3d/compiler: remove unused sample_coverage field from fs key.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20634>
This commit is contained in:
Iago Toral Quiroga 2023-01-11 09:31:06 +01:00 committed by Marge Bot
parent 09782e5e6d
commit 22ef66bcc9
4 changed files with 2 additions and 12 deletions

View file

@ -418,7 +418,6 @@ struct v3d_fs_key {
bool line_smoothing;
bool point_coord_upper_left;
bool msaa;
bool sample_coverage;
bool sample_alpha_to_coverage;
bool sample_alpha_to_one;
/* Mask of which color render targets are present. */

View file

@ -1081,11 +1081,8 @@ pipeline_populate_v3d_fs_key(struct v3d_fs_key *key,
ms_info->rasterizationSamples == VK_SAMPLE_COUNT_4_BIT);
key->msaa = ms_info->rasterizationSamples > VK_SAMPLE_COUNT_1_BIT;
if (key->msaa) {
key->sample_coverage =
p_stage->pipeline->sample_mask != (1 << V3D_MAX_SAMPLES) - 1;
if (key->msaa)
key->sample_alpha_to_coverage = ms_info->alphaToCoverageEnable;
}
key->sample_alpha_to_one = ms_info->alphaToOneEnable;
}
@ -1901,11 +1898,8 @@ pipeline_populate_graphics_key(struct v3dv_pipeline *pipeline,
ms_info->rasterizationSamples == VK_SAMPLE_COUNT_4_BIT);
key->msaa = ms_info->rasterizationSamples > VK_SAMPLE_COUNT_1_BIT;
if (key->msaa) {
key->sample_coverage =
pipeline->sample_mask != (1 << V3D_MAX_SAMPLES) - 1;
if (key->msaa)
key->sample_alpha_to_coverage = ms_info->alphaToCoverageEnable;
}
key->sample_alpha_to_one = ms_info->alphaToOneEnable;
}

View file

@ -316,7 +316,6 @@ struct v3dv_pipeline_key {
uint8_t topology;
uint8_t logicop_func;
bool msaa;
bool sample_coverage;
bool sample_alpha_to_coverage;
bool sample_alpha_to_one;
uint8_t cbufs;

View file

@ -573,8 +573,6 @@ v3d_update_compiled_fs(struct v3d_context *v3d, uint8_t prim_mode)
}
if (job->msaa) {
key->msaa = v3d->rasterizer->base.multisample;
key->sample_coverage = (v3d->rasterizer->base.multisample &&
v3d->sample_mask != (1 << V3D_MAX_SAMPLES) - 1);
key->sample_alpha_to_coverage = v3d->blend->base.alpha_to_coverage;
key->sample_alpha_to_one = v3d->blend->base.alpha_to_one;
}