mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
agx: rm dead sample count argument
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
parent
fd0068612f
commit
9cb03ba5c7
3 changed files with 3 additions and 3 deletions
|
|
@ -3161,7 +3161,7 @@ agx_compile_shader_nir(nir_shader *nir, struct agx_shader_key *key,
|
|||
* count is dynamic when the main fragment shader is compiled.
|
||||
*/
|
||||
if (nir->info.stage == MESA_SHADER_FRAGMENT && key->fs.nr_samples) {
|
||||
if (agx_nir_lower_sample_mask(nir, key->fs.nr_samples)) {
|
||||
if (agx_nir_lower_sample_mask(nir)) {
|
||||
/* Clean up ixor(bcsel) patterns created from sample mask lowering.
|
||||
* Also constant fold to get the benefit. We need to rescalarize after
|
||||
* folding constants.
|
||||
|
|
|
|||
|
|
@ -926,7 +926,7 @@ void agx_emit_parallel_copies(agx_builder *b, struct agx_copy *copies,
|
|||
void agx_compute_liveness(agx_context *ctx);
|
||||
void agx_liveness_ins_update(BITSET_WORD *live, agx_instr *I);
|
||||
|
||||
bool agx_nir_lower_sample_mask(nir_shader *s, unsigned nr_samples);
|
||||
bool agx_nir_lower_sample_mask(nir_shader *s);
|
||||
bool agx_nir_lower_texture(nir_shader *s);
|
||||
bool agx_nir_opt_preamble(nir_shader *s, unsigned *preamble_size);
|
||||
bool agx_nir_lower_load_mask(nir_shader *shader);
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ run_tests_at_start(nir_shader *shader)
|
|||
}
|
||||
|
||||
bool
|
||||
agx_nir_lower_sample_mask(nir_shader *shader, unsigned nr_samples)
|
||||
agx_nir_lower_sample_mask(nir_shader *shader)
|
||||
{
|
||||
bool writes_zs =
|
||||
shader->info.outputs_written &
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue