gallium/tgsi: add support for DEMOTE and READ_HELPER opcodes
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 2 Oct 2019 23:39:30 +0000 (19:39 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 8 Oct 2019 00:41:59 +0000 (20:41 -0400)
commit71c34a51c323bcdeaa1897efe065b9676b179a97
treef1f3f35cbcf6175e8b58b2deb9450e0a39cd1a76
parenteec7b0a8659977cdaa59fa91962f543b6f5a9668
gallium/tgsi: add support for DEMOTE and READ_HELPER opcodes

This mirrors the intrinsics in the GLSL IR. One could imagine an
alternate definition where reading the semantic would account for the
READ_HELPER functionality, but that feels potentially dodgy and could be
subject to CSE unpleasantness.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/tgsi/tgsi_info_opcodes.h
src/gallium/docs/source/tgsi.rst
src/gallium/include/pipe/p_shader_tokens.h
src/mesa/state_tracker/st_glsl_to_tgsi.cpp