i965: Enable EXT_shader_samples_identical
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Nov 2015 01:57:08 +0000 (17:57 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Nov 2015 04:17:16 +0000 (20:17 -0800)
commit99840eb983f74cd447546f7205c8c9f505ef82c8
tree52d6cef773a1e2e18fd1fbe8e9c5648236fedb31
parent84b6c64efc52948da8db89b8d92d5e744e6cfc95
i965: Enable EXT_shader_samples_identical

On the vec4 backend, textureSamplesIdentical() will always return
false.  There are currently no test cases for the vec4 backend, so we
don't have much confidence in any implementation.  We also don't think
anyone is likely to miss it.

v2: Handle immediate value for MCS smarter.  Rebase on changes to
nir_texop_sampels_identical (missing second parameter).  Suggested by
Jason.

v3: Add Neil's code to handle 16x MSAA in the FS.  Also rebase on top of
f9a9ba5e.  Stub out the vec4 implementation.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> [v2]
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> [v2]
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/intel_extensions.c