This patch series implements ARB_shader_stencil_export. The fragment shader is able to natively understand the W-tile format of stencil, and write results to the stencil buffer. The patch series has no piglit regressions, and it is passing both my new test (mentioned below) as well as the original test `fbo-depth-array fs-writes-stencil`.
There are still 2 things ongoing here, but I don't think either prevent merging at least the first 5 patches. I am still working on improving the basic test I created: http://lists.freedesktop.org/archives/piglit/2015-October/017584.html I am also still working on implementing meta blits for stencil using this extension. I think the patches for that are mostly done, but they need more testing. I'll be posting those separately. Ben Widawsky (6): i965: Correct the comment about fb write payload i965/fs: Enumerate logical fb writes arguments i965: (trivial) rename computes stencil to gen9 i965: Implement ARB_shader_stencil_export (SKL+) Implement the proper packing for the stencil payload i965: Advertise ARB_shader_stencil_export (gen9+) docs/relnotes/11.1.0.html | 1 + src/mesa/drivers/dri/i965/brw_compiler.h | 1 + src/mesa/drivers/dri/i965/brw_defines.h | 22 ++++++----- src/mesa/drivers/dri/i965/brw_fs.cpp | 39 ++++++++++++++----- src/mesa/drivers/dri/i965/brw_fs.h | 4 ++ src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 52 ++++++++++++++++++++++++++ src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 + src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 24 ++++++++++-- src/mesa/drivers/dri/i965/brw_shader.cpp | 2 + src/mesa/drivers/dri/i965/gen8_ps_state.c | 5 +++ src/mesa/drivers/dri/i965/intel_extensions.c | 1 + 11 files changed, 131 insertions(+), 22 deletions(-) -- 2.6.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev