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:
@@ -441,7 +441,7 @@ st_translate_interp(enum glsl_interp_qualifier glsl_qual, bool is_color)
|
||||
switch (glsl_qual) {
|
||||
case INTERP_QUALIFIER_NONE:
|
||||
if (is_color)
|
||||
return TGSI_INTERPOLATE_LINEAR;
|
||||
return TGSI_INTERPOLATE_COLOR;
|
||||
return TGSI_INTERPOLATE_PERSPECTIVE;
|
||||
case INTERP_QUALIFIER_SMOOTH:
|
||||
return TGSI_INTERPOLATE_PERSPECTIVE;
|
||||
|
Reference in New Issue
Block a user