projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2b6bc6
)
Use glsl_type::get_instance instead of _mesa_glsl_get_vector_type
author
Ian Romanick
<ian.d.romanick@intel.com>
Thu, 25 Mar 2010 00:46:39 +0000
(17:46 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Thu, 25 Mar 2010 00:46:39 +0000
(17:46 -0700)
hir_field_selection.cpp
patch
|
blob
|
history
diff --git
a/hir_field_selection.cpp
b/hir_field_selection.cpp
index aa53120dbdb49326c9543620ef3a26c15a036dc4..5f548bfa0f87f55e669e3f1f6df4f2475eab4cba 100644
(file)
--- a/
hir_field_selection.cpp
+++ b/
hir_field_selection.cpp
@@
-145,8
+145,9
@@
_mesa_ast_field_selection_to_hir(const ast_expression *expr,
* generate the type of the resulting value.
*/
deref->type =
- _mesa_glsl_get_vector_type(op->type->base_type,
- deref->selector.swizzle.num_components);
+ glsl_type::get_instance(op->type->base_type,
+ deref->selector.swizzle.num_components,
+ 1);
} else {
/* FINISHME: Logging of error messages should be moved into
* FINISHME: generate_swizzle. This allows the generation of more