mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
llvmpipe: fixup multisample coverage masks for covered tiles
For fully covered tiles just pass in the filled out mask. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>
This commit is contained in:
parent
2d13591ba4
commit
8611a6b34b
2 changed files with 10 additions and 2 deletions
|
|
@ -361,6 +361,10 @@ lp_rast_shade_tile(struct lp_rasterizer_task *task,
|
|||
depth_sample_stride = scene->zsbuf.sample_stride;
|
||||
}
|
||||
|
||||
uint64_t mask = 0;
|
||||
for (unsigned i = 0; i < scene->fb_max_samples; i++)
|
||||
mask |= (uint64_t)(0xffff) << (16 * i);
|
||||
|
||||
/* Propagate non-interpolated raster state. */
|
||||
task->thread_data.raster_state.viewport_index = inputs->viewport_index;
|
||||
|
||||
|
|
@ -374,7 +378,7 @@ lp_rast_shade_tile(struct lp_rasterizer_task *task,
|
|||
GET_DADY(inputs),
|
||||
color,
|
||||
depth,
|
||||
(uint64_t)0xffff,
|
||||
mask,
|
||||
&task->thread_data,
|
||||
stride,
|
||||
depth_stride,
|
||||
|
|
|
|||
|
|
@ -261,6 +261,10 @@ lp_rast_shade_quads_all( struct lp_rasterizer_task *task,
|
|||
depth_stride = scene->zsbuf.stride;
|
||||
}
|
||||
|
||||
uint64_t mask = 0;
|
||||
for (unsigned i = 0; i < scene->fb_max_samples; i++)
|
||||
mask |= (uint64_t)0xffff << (16 * i);
|
||||
|
||||
/*
|
||||
* The rasterizer may produce fragments outside our
|
||||
* allocated 4x4 blocks hence need to filter them out here.
|
||||
|
|
@ -279,7 +283,7 @@ lp_rast_shade_quads_all( struct lp_rasterizer_task *task,
|
|||
GET_DADY(inputs),
|
||||
color,
|
||||
depth,
|
||||
(uint64_t)0xffff,
|
||||
mask,
|
||||
&task->thread_data,
|
||||
stride,
|
||||
depth_stride,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue