nir: add has_txs flag
Some nir lowerings might need to know if txs is supported by the backend. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8898>
This commit is contained in:
committed by
Marge Bot
parent
b0e23c92b3
commit
3fbde2fd93
@@ -3387,6 +3387,10 @@ typedef struct nir_shader_compiler_options {
|
||||
* iadd(x, ineg(y)). If true, driver should call nir_opt_algebraic_late(). */
|
||||
bool has_isub;
|
||||
|
||||
/** Backend supports txs, if not nir_lower_tex(..) uses txs-free variants
|
||||
* for rect texture lowering. */
|
||||
bool has_txs;
|
||||
|
||||
/* Whether to generate only scoped_barrier intrinsics instead of the set of
|
||||
* memory and control barrier intrinsics based on GLSL.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user