glsl: simplify an assertion in lower_ubo_reference
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 15 May 2017 06:34:24 +0000 (08:34 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 13 Jun 2017 07:35:53 +0000 (09:35 +0200)
Struct types are now equal when they're structurally equal.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/lower_ubo_reference.cpp

index 71188459cddce1bce3f116d8437651809756bce0..163c25e706a2d124860f2d988c00e858619ae90a 100644 (file)
@@ -893,7 +893,7 @@ lower_ubo_reference_visitor::check_for_buffer_struct_copy(ir_assignment *ir)
    if (!lhs_deref)
       return false;
 
-   assert(lhs_deref->type->record_compare(rhs_deref->type));
+   assert(lhs_deref->type == rhs_deref->type);
    void *mem_ctx = ralloc_parent(shader->ir);
 
    for (unsigned i = 0; i < lhs_deref->type->length; i++) {