[Mesa-dev] [PATCH] gallium: Adds PIPE_SHADER_CAP_VARYINGS_PACKING_CONSTRAINTS
Vincent Lejeune
vljn at ovi.com
Fri Feb 24 11:44:44 PST 2012
v2: remove underscore between NO and PERSPECTIVE in PIPE_PACKING_CONSTRAINT_SMOOTH_NO_PERSPECTIVE_MIXED
---
src/gallium/include/pipe/p_defines.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 4155178..4b55e5c 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -510,6 +510,13 @@ enum pipe_capf
PIPE_CAPF_GUARD_BAND_BOTTOM = 24
};
+/**
+ * Return values for varyings_packing_constraints cap
+ */
+#define PIPE_PACKING_CONSTRAINT_NONE 0
+#define PIPE_PACKING_CONSTRAINT_SMOOTH_NOPERSPECTIVE_MIXED 1
+#define PIPE_PACKING_CONSTRAINT_NO_MIXED_INTERPOLATION 2
+#define PIPE_PACKING_CONSTRAINT_AVOID_PACKING 3
/* Shader caps not specific to any single stage */
enum pipe_shader_cap
{
@@ -533,7 +540,8 @@ enum pipe_shader_cap
PIPE_SHADER_CAP_SUBROUTINES = 16, /* BGNSUB, ENDSUB, CAL, RET */
PIPE_SHADER_CAP_INTEGERS = 17,
PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS = 18,
- PIPE_SHADER_CAP_OUTPUT_READ = 19
+ PIPE_SHADER_CAP_OUTPUT_READ = 19,
+ PIPE_SHADER_CAP_VARYINGS_PACKING_CONSTRAINTS = 20
};
--
1.7.7
More information about the mesa-dev
mailing list