State for sample locations is not used within this function.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18669>
const unsigned entry_size[4],
enum intel_urb_deref_block_size *deref_block_size);
-void genX(emit_multisample)(struct anv_batch *batch, uint32_t samples,
- const struct vk_sample_locations_state *sl);
+void genX(emit_multisample)(struct anv_batch *batch, uint32_t samples);
void genX(emit_sample_pattern)(struct anv_batch *batch,
const struct vk_sample_locations_state *sl);
{
/* On Gfx8+ 3DSTATE_MULTISAMPLE only holds the number of samples. */
genX(emit_multisample)(&pipeline->base.batch,
- pipeline->rasterization_samples,
- NULL);
+ pipeline->rasterization_samples);
/* From the Vulkan 1.0 spec:
* If pSampleMask is NULL, it is treated as if the mask has all bits
}
void
-genX(emit_multisample)(struct anv_batch *batch, uint32_t samples,
- const struct vk_sample_locations_state *sl)
+genX(emit_multisample)(struct anv_batch *batch, uint32_t samples)
{
- if (sl != NULL) {
- assert(sl->per_pixel == samples);
- assert(sl->grid_size.width == 1);
- assert(sl->grid_size.height == 1);
- } else {
- sl = vk_standard_sample_locations_state(samples);
- }
-
anv_batch_emit(batch, GENX(3DSTATE_MULTISAMPLE), ms) {
ms.NumberofMultisamples = __builtin_ffs(samples) - 1;