mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 03:50:13 +01:00
anv: pipeline: gen7: fix assert in debug mode
SampleMask is only 8bits long on gen7. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97278 Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
8c56ff643b
commit
0294dd00cc
1 changed files with 4 additions and 0 deletions
|
|
@ -463,7 +463,11 @@ emit_ms_state(struct anv_pipeline *pipeline,
|
|||
*
|
||||
* 3DSTATE_SAMPLE_MASK.SampleMask is 16 bits.
|
||||
*/
|
||||
#if GEN_GEN >= 8
|
||||
uint32_t sample_mask = 0xffff;
|
||||
#else
|
||||
uint32_t sample_mask = 0xff;
|
||||
#endif
|
||||
|
||||
if (info) {
|
||||
samples = info->rasterizationSamples;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue