mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
radv: pass radv_physical_device to radv_emit_default_sample_locations()
To emit PA_SC_CENTROID_0 which changed on GFX12. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29215>
This commit is contained in:
parent
9e7c44ea11
commit
50ef8600bc
3 changed files with 4 additions and 3 deletions
|
|
@ -3600,7 +3600,7 @@ radv_emit_rasterization_samples(struct radv_cmd_buffer *cmd_buffer)
|
|||
S_028A4C_WALK_ALIGN8_PRIM_FITS_ST(pdev->info.gfx_level < GFX11 || !cmd_buffer->state.uses_vrs_attachment);
|
||||
|
||||
if (!d->sample_location.count)
|
||||
radv_emit_default_sample_locations(cmd_buffer->cs, rasterization_samples);
|
||||
radv_emit_default_sample_locations(pdev, cmd_buffer->cs, rasterization_samples);
|
||||
|
||||
if (ps_iter_samples > 1) {
|
||||
spi_baryc_cntl |= S_0286E0_POS_FLOAT_LOCATION(2);
|
||||
|
|
|
|||
|
|
@ -751,7 +751,7 @@ radv_get_default_max_sample_dist(int log_samples)
|
|||
}
|
||||
|
||||
void
|
||||
radv_emit_default_sample_locations(struct radeon_cmdbuf *cs, int nr_samples)
|
||||
radv_emit_default_sample_locations(const struct radv_physical_device *pdev, struct radeon_cmdbuf *cs, int nr_samples)
|
||||
{
|
||||
uint64_t centroid_priority;
|
||||
|
||||
|
|
|
|||
|
|
@ -598,7 +598,8 @@ VkResult radv_device_init_vrs_state(struct radv_device *device);
|
|||
|
||||
unsigned radv_get_default_max_sample_dist(int log_samples);
|
||||
|
||||
void radv_emit_default_sample_locations(struct radeon_cmdbuf *cs, int nr_samples);
|
||||
void radv_emit_default_sample_locations(const struct radv_physical_device *pdev, struct radeon_cmdbuf *cs,
|
||||
int nr_samples);
|
||||
|
||||
bool radv_get_memory_fd(struct radv_device *device, struct radv_device_memory *memory, int *pFD);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue