panfrost: do not report alpha-test as supported
This triggers lowering in the state-tracker, which makes things a bit simpler. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
3298aedd6e
commit
2da792d398
|
@ -59,15 +59,6 @@ panfrost_shader_compile(
|
|||
|
||||
s->info.stage = stage;
|
||||
|
||||
if (stage == MESA_SHADER_FRAGMENT) {
|
||||
/* Inject the alpha test now if we need to */
|
||||
|
||||
if (state->alpha_state.enabled) {
|
||||
NIR_PASS_V(s, nir_lower_alpha_test,
|
||||
state->alpha_state.func, false, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* Call out to Midgard compiler given the above NIR */
|
||||
|
||||
midgard_program program = {
|
||||
|
|
|
@ -244,6 +244,9 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
case PIPE_CAP_MAX_VARYINGS:
|
||||
return 16;
|
||||
|
||||
case PIPE_CAP_ALPHA_TEST:
|
||||
return 0;
|
||||
|
||||
default:
|
||||
return u_pipe_screen_get_param_defaults(screen, param);
|
||||
}
|
||||
|
|
|
@ -1548,17 +1548,6 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr)
|
|||
emit_ssbo_access(ctx, &instr->instr, false, reg, offset, indirect_offset, uindex);
|
||||
break;
|
||||
|
||||
case nir_intrinsic_load_alpha_ref_float:
|
||||
assert(instr->dest.is_ssa);
|
||||
|
||||
float ref_value = ctx->alpha_ref;
|
||||
|
||||
/* See emit_load_const */
|
||||
float *v = ralloc_array(NULL, float, 4);
|
||||
memcpy(v, &ref_value, sizeof(float));
|
||||
_mesa_hash_table_u64_insert(ctx->ssa_constants, (instr->dest.ssa.index << 1) + 1, v);
|
||||
break;
|
||||
|
||||
case nir_intrinsic_load_viewport_scale:
|
||||
case nir_intrinsic_load_viewport_offset:
|
||||
case nir_intrinsic_load_num_work_groups:
|
||||
|
|
Loading…
Reference in New Issue