Skip to content

rdpq: evaluate implementing workaround for alpha compare in 2-cycle mode #766

@rasky

Description

@rasky

Alpha compare in 2-cycle mode is broken because the threshold is performed using next pixel's output of the first stage of the combiner.

However, assuming the user configured a 1-step combiner (or a 2-step combiner which actually only uses one step of alpha), there is a workaround. In fact you can put the actual alpha formula in the second step, and use COMBINED as first step. In fact, COMBINED in first step is actually ill-defined and fetched the output the previous pixel, which perfectly counter-balances alpha thresholding against the next pixel's first step.

This can be a little tricky to implement in rdpq, but it would solve this little nuisance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    correctnessImprovement to handle specific corner casesnew featureSuggestion for a new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions