mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 10:38:11 +02:00
jay: fix omask on single sample
dEQP-GLES31.functional.shaders.sample_variables.sample_mask.discard_half_per_pixel.singlesample_rbo Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41688>
This commit is contained in:
parent
6a02e228bc
commit
1e31be0e52
1 changed files with 5 additions and 0 deletions
|
|
@ -779,6 +779,11 @@ jay_emit_fb_write(jay_builder *b, nir_intrinsic_instr *intr)
|
|||
const int target = MAX2(((signed) nir_intrinsic_target(intr)), 0);
|
||||
const bool last = !nir_instr_next(&intr->instr);
|
||||
|
||||
/* The hardware freaks out if we give it an omask without multisampling. */
|
||||
if (!b->shader->prog_data->fs.uses_omask) {
|
||||
omask = jay_null();
|
||||
}
|
||||
|
||||
/* If our alpha happens to match src0_alpha, we can skip sending it,
|
||||
* as the hardware will use our alpha in that case.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue