~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/compiler/glsl/link_uniforms.cpp

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "main/shader_types.h"
33
33
#include "main/consts_exts.h"
34
34
#include "util/strndup.h"
 
35
#include "util/u_math.h"
35
36
 
36
37
/**
37
38
 * \file link_uniforms.cpp
278
279
    *    vec4.
279
280
    */
280
281
   return packing == GLSL_INTERFACE_PACKING_STD430
281
 
      ? (items < 3 ? items * N : glsl_align(items * N, 16))
282
 
      : glsl_align(items * N, 16);
 
282
      ? (items < 3 ? items * N : align(items * N, 16))
 
283
      : align(items * N, 16);
283
284
}