summaryrefslogtreecommitdiffstats
path: root/src/glsl/hir_field_selection.cpp
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-12-07 14:11:01 -0800
committerMatt Turner <[email protected]>2015-12-08 15:36:57 -0800
commit79da7220db645ade2903af238603c32d551ed5c4 (patch)
tree1f153b3582e340d0185d5d6a8a2c119dfe6a66e9 /src/glsl/hir_field_selection.cpp
parentc200e606f7348a6d75e4cf72fb538f5d78d67649 (diff)
glsl: Use has_420pack().
These features would not have been enabled with #version 420 otherwise. Cc: "11.1" <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/glsl/hir_field_selection.cpp')
-rw-r--r--src/glsl/hir_field_selection.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/hir_field_selection.cpp b/src/glsl/hir_field_selection.cpp
index 337095b95b8..92bb4139194 100644
--- a/src/glsl/hir_field_selection.cpp
+++ b/src/glsl/hir_field_selection.cpp
@@ -57,8 +57,7 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr,
expr->primary_expression.identifier);
}
} else if (op->type->is_vector() ||
- (state->ARB_shading_language_420pack_enable &&
- op->type->is_scalar())) {
+ (state->has_420pack() && op->type->is_scalar())) {
ir_swizzle *swiz = ir_swizzle::create(op,
expr->primary_expression.identifier,
op->type->vector_elements);