[Mesa-dev] [PATCH 49/50] gallium: add pipe double support enum + docs
Dave Airlie
airlied at gmail.com
Tue Mar 13 04:25:14 UTC 2018
From: Dave Airlie <airlied at redhat.com>
---
src/gallium/docs/source/screen.rst | 4 +++-
src/gallium/include/pipe/p_defines.h | 7 +++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst
index e375d67..42e4f32 100644
--- a/src/gallium/docs/source/screen.rst
+++ b/src/gallium/docs/source/screen.rst
@@ -361,7 +361,9 @@ The integer capabilities:
* ``PIPE_CAP_TGSI_MUL_ZERO_WINS``: Whether TGSI shaders support the
``TGSI_PROPERTY_MUL_ZERO_WINS`` shader property.
* ``PIPE_CAP_DOUBLES``: Whether double precision floating-point operations
- are supported.
+ are supported. PIPE_DOUBLES_HW indicates HW support for doubles,
+ PIPE_DOUBLES_EMULATE indicates the driver wants the state tracker to
+ lower doubles.
* ``PIPE_CAP_INT64``: Whether 64-bit integer operations are supported.
* ``PIPE_CAP_INT64_DIVMOD``: Whether 64-bit integer division/modulo
operations are supported.
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index ed8eeb8..b104007 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -1098,6 +1098,13 @@ enum pipe_debug_type
PIPE_DEBUG_TYPE_CONFORMANCE,
};
+enum pipe_double_support
+{
+ PIPE_DOUBLES_NONE = 0,
+ PIPE_DOUBLES_HW = 1,
+ PIPE_DOUBLES_EMULATE = 2
+};
+
#define PIPE_UUID_SIZE 16
#ifdef __cplusplus
--
2.9.5
More information about the mesa-dev
mailing list