summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-08-30 10:19:01 +1000
committerTimothy Arceri <[email protected]>2018-09-18 19:43:05 +1000
commit2d7dc9591dfe8f9b40317e646ca978226d2c9b05 (patch)
tree339f6a7cab53c8e15104769ff5c8a23b18a0c697 /src/mesa
parent408d41a413d79ca93e165ff61640c393f8c4028b (diff)
mesa: move legacy dri config option color_reduction
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_screen.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.h b/src/mesa/drivers/dri/radeon/radeon_screen.h
index 9d69dcd4785..35a20996f82 100644
--- a/src/mesa/drivers/dri/radeon/radeon_screen.h
+++ b/src/mesa/drivers/dri/radeon/radeon_screen.h
@@ -47,6 +47,16 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "radeon_reg.h"
#include "util/xmlconfig.h"
+#define DRI_CONF_COLOR_REDUCTION_ROUND 0
+#define DRI_CONF_COLOR_REDUCTION_DITHER 1
+#define DRI_CONF_COLOR_REDUCTION(def) \
+DRI_CONF_OPT_BEGIN_V(color_reduction,enum,def,"0:1") \
+ DRI_CONF_DESC_BEGIN(en,"Initial color reduction method") \
+ DRI_CONF_ENUM(0,"Round colors") \
+ DRI_CONF_ENUM(1,"Dither colors") \
+ DRI_CONF_DESC_END \
+DRI_CONF_OPT_END
+
#define DRI_CONF_TCL_SW 0
#define DRI_CONF_TCL_PIPELINED 1