[Mesa-dev] [PATCH 1/2] anv: pipeline: gen7: fix assert in debug mode
Anuj Phogat
anuj.phogat at gmail.com
Sat Aug 13 00:07:07 UTC 2016
It was holding the jenkins system to run cts on HSW. So I pushed
[PATCH 1/2] upstream.
On Fri, Aug 12, 2016 at 5:02 PM, Anuj Phogat <anuj.phogat at gmail.com> wrote:
> On Thu, Aug 11, 2016 at 10:25 AM, Lionel Landwerlin
> <llandwerlin at gmail.com> wrote:
>> SampleMask is only 8bits long on gen7.
>>
>> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
>> Cc: Jason Ekstrand <jason at jlekstrand.net>
>> ---
>> src/intel/vulkan/genX_pipeline_util.h | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/src/intel/vulkan/genX_pipeline_util.h b/src/intel/vulkan/genX_pipeline_util.h
>> index 64b89cd..d56eeb8 100644
>> --- a/src/intel/vulkan/genX_pipeline_util.h
>> +++ b/src/intel/vulkan/genX_pipeline_util.h
>> @@ -462,7 +462,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;
>> --
>> 2.8.1
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
> Thanks for fixing this.
>
> Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
More information about the mesa-dev
mailing list