glsl: rename is_record() -> is_struct()
Replace was done using: find ./src -type f -exec sed -i -- \ 's/is_record(/is_struct(/g' {} \; Acked-by: Karol Herbst <kherbst@redhat.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -79,7 +79,7 @@ create_xfb_varying_names(void *mem_ctx, const glsl_type *t, char **name,
|
||||
|
||||
create_xfb_varying_names(mem_ctx, ifc_member_t, name, new_length, count,
|
||||
NULL, NULL, varying_names);
|
||||
} else if (t->is_record()) {
|
||||
} else if (t->is_struct()) {
|
||||
for (unsigned i = 0; i < t->length; i++) {
|
||||
const char *field = t->fields.structure[i].name;
|
||||
size_t new_length = name_length;
|
||||
@@ -90,7 +90,7 @@ create_xfb_varying_names(void *mem_ctx, const glsl_type *t, char **name,
|
||||
new_length, count, NULL, NULL,
|
||||
varying_names);
|
||||
}
|
||||
} else if (t->without_array()->is_record() ||
|
||||
} else if (t->without_array()->is_struct() ||
|
||||
t->without_array()->is_interface() ||
|
||||
(t->is_array() && t->fields.array->is_array())) {
|
||||
for (unsigned i = 0; i < t->length; i++) {
|
||||
@@ -461,7 +461,7 @@ check_location_aliasing(struct explicit_location_info explicit_locations[][4],
|
||||
gl_shader_stage stage)
|
||||
{
|
||||
unsigned last_comp;
|
||||
if (type->without_array()->is_record()) {
|
||||
if (type->without_array()->is_struct()) {
|
||||
/* The component qualifier can't be used on structs so just treat
|
||||
* all component slots as used.
|
||||
*/
|
||||
@@ -1619,7 +1619,7 @@ varying_matches::is_varying_packing_safe(const glsl_type *type,
|
||||
producer_stage == MESA_SHADER_TESS_CTRL)
|
||||
return false;
|
||||
|
||||
return xfb_enabled && (type->is_array() || type->is_record() ||
|
||||
return xfb_enabled && (type->is_array() || type->is_struct() ||
|
||||
type->is_matrix() || var->data.is_xfb_only);
|
||||
}
|
||||
|
||||
@@ -1926,7 +1926,7 @@ varying_matches::store_locations() const
|
||||
if (enhanced_layouts_enabled) {
|
||||
const glsl_type *type =
|
||||
get_varying_type(producer_var, producer_stage);
|
||||
if (type->is_array() || type->is_matrix() || type->is_record() ||
|
||||
if (type->is_array() || type->is_matrix() || type->is_struct() ||
|
||||
type->is_double()) {
|
||||
unsigned comp_slots = type->component_slots() + offset;
|
||||
unsigned slots = comp_slots / 4;
|
||||
@@ -2158,7 +2158,7 @@ private:
|
||||
const enum glsl_interface_packing,
|
||||
bool /* last_field */)
|
||||
{
|
||||
assert(!type->without_array()->is_record());
|
||||
assert(!type->without_array()->is_struct());
|
||||
assert(!type->without_array()->is_interface());
|
||||
|
||||
tfeedback_candidate *candidate
|
||||
|
Reference in New Issue
Block a user