Created attachment 130455 [details]
deferredmultisampling: compiler/brw_fs_generator.cpp:2107: int fs_generator::generate_code(const cfg_t*, int): Assertion `validated' failed.
There are "ERROR: src0 is null" messages when run with INTEL_DEBUG=wm. If I comment the assert out, the demo runs seemingly correctly (matches radv at least), and I see no problems reported by validation layers.
HW: SKL GT2
Mesa git version: 641f629536c2da
Thanks for the report! I've got a patch to fix this on the mailing list.
This has been fixed by the following commit in master:
Author: Jason Ekstrand <email@example.com>
Date: Wed Mar 29 15:16:15 2017 -0700
i965/fs: Always provide a default LOD of 0 for TXS and TXL
We already provide a default LOD for textureQueryLevels and texture() on
non-fragment stages. However, there are more cases where one is needed
such as textureSize(gsampler2DMS*) in SPIR-V. Instead of trying to list
out all of the cases one at a time, just provide the default for all TXS
and TXL operations. This fixes a shader validation error in the new
Sascha deferredmultisampling demo which uses textureSize(gsampler2DMS).
Reviewed-by: Anuj Phogat <firstname.lastname@example.org>
Cc: "13.0 17.0" <email@example.com>