gallium: introduce GLSL based interpolation rules. (v2)
This introduces an unspecified interpolation paramter that is only allowed for color semantics, so a specified GLSL interpolation will override the ShadeModel specified interpolation, but not vice-versa. This fixes a lot of the interpolation tests in piglit. v2: rename from unspecified to color Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -100,7 +100,8 @@ enum tgsi_file_type {
|
||||
#define TGSI_INTERPOLATE_CONSTANT 0
|
||||
#define TGSI_INTERPOLATE_LINEAR 1
|
||||
#define TGSI_INTERPOLATE_PERSPECTIVE 2
|
||||
#define TGSI_INTERPOLATE_COUNT 3
|
||||
#define TGSI_INTERPOLATE_COLOR 3 /* special color case for smooth/flat */
|
||||
#define TGSI_INTERPOLATE_COUNT 4
|
||||
|
||||
#define TGSI_CYLINDRICAL_WRAP_X (1 << 0)
|
||||
#define TGSI_CYLINDRICAL_WRAP_Y (1 << 1)
|
||||
|
Reference in New Issue
Block a user