diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2022-03-15 23:35:24 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-03-24 10:49:07 +0000 |
commit | 8cdd5647c6c3c52a0ff046791d39afb1ad6beac9 (patch) | |
tree | a3ad661f321a5c131bd284f4127b8965092350c2 /src/intel/vulkan/genX_pipeline.c | |
parent | 6f5f817c0fa414d23b7e843fc27237053b072a2c (diff) |
anv: don't store sample location sample count
This information should match the current pipeline sample count.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15310>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r-- | src/intel/vulkan/genX_pipeline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 1816e45a6c4..bc0157dbec5 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -925,7 +925,7 @@ emit_ms_state(struct anv_graphics_pipeline *pipeline, #if GFX_VER >= 8 /* On Gfx8+ 3DSTATE_MULTISAMPLE only holds the number of samples. */ genX(emit_multisample)(&pipeline->base.batch, - info ? info->rasterizationSamples : 1, + pipeline->rasterization_samples, NULL); #endif @@ -938,11 +938,11 @@ emit_ms_state(struct anv_graphics_pipeline *pipeline, !(dynamic_states & ANV_CMD_DIRTY_DYNAMIC_SAMPLE_LOCATIONS)) { #if GFX_VER >= 8 genX(emit_sample_pattern)(&pipeline->base.batch, - pipeline->dynamic_state.sample_locations.samples, + pipeline->rasterization_samples, pipeline->dynamic_state.sample_locations.locations); #else genX(emit_multisample)(&pipeline->base.batch, - pipeline->dynamic_state.sample_locations.samples, + pipeline->rasterization_samples, pipeline->dynamic_state.sample_locations.locations); #endif } |