i965/fs: include multisamplers on image_intrinsic_coord_components
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 4 Sep 2018 11:02:57 +0000 (13:02 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 5 Sep 2018 15:02:28 +0000 (17:02 +0200)
commit4e1f8d82c2176be273a8d49f804f5b817252facc
treea666e039a5f4c4602fd727825633f20a24fc2dce
parent8969777686307c5649916d0e2d1024ae1e1af1ce
i965/fs: include multisamplers on image_intrinsic_coord_components

This is the second patch needed to fix the following piglit tests:

   tests/spec/arb_gl_spirv/linker/uniform/multisampler.shader_test
   tests/spec/arb_gl_spirv/linker/uniform/multisampler-array.shader_test

Although in this case it doesn't affect so many borrowed tests, as
there aren't too many tests using multisamplers on Intel.

It is worth to note that this patch is also needed when those tests
are run on GLSL mode (using the --glsl option). Although most Intel
drivers would not be able to run/execute tests using multisamplers, as
GL_MAX_IMAGE_SAMPLES is zero, technically those tests are expected to
link correctly, so linking tests should pass.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs_nir.cpp