From 2af431cf7fe9303bbfbd719e4612f00043583f40 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 30 Aug 2019 17:57:18 +0200 Subject: gallium: Plumb through a way to disable GLSL const lowering For radeonsi, we will prefer the NIR pass as it'll generate better code (some index calculation and a single load vs. a load, then index calculation, then another load) and oftentimes NIR optimization can kick in and make all the access indices constant. Reviewed-by: Kenneth Graunke Reviewed-by: Timothy Arceri --- src/gallium/docs/source/screen.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/docs/source/screen.rst') diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index d149a2f4c9f..1df04b6c3bf 100644 --- a/src/gallium/docs/source/screen.rst +++ b/src/gallium/docs/source/screen.rst @@ -548,6 +548,10 @@ The integer capabilities: types with texture functions having interaction with LOD of texture lookup. * ``PIPE_CAP_SHADER_SAMPLES_IDENTICAL``: True if the driver supports a shader query to tell whether all samples of a multisampled surface are definitely identical. * ``PIPE_CAP_TGSI_ATOMINC_WRAP``: Atomic increment/decrement + wrap around are supported. +* ``PIPE_CAP_PREFER_IMM_ARRAYS_AS_CONSTBUF``: True if the state tracker should + turn arrays whose contents can be deduced at compile time into constant + buffer loads, or false if the driver can handle such arrays itself in a more + efficient manner. .. _pipe_capf: -- cgit v1.2.3