aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-03-30 15:53:48 -0700
committerMarge Bot <[email protected]>2020-03-31 18:46:04 +0000
commit127fa5d00c3fbcc23b7f5fea4ab50da061477cba (patch)
tree5852bbafed636185e9d7edda431d39bfe0f4f03d
parentae7da1a01706835120bd59ea069e49cf325feaa3 (diff)
freedreno/ir3: fix android build
Fixes: e5339fe4a47 ("Move compiler.h and imports.h/c from src/mesa/main into src/util") Signed-off-by: Rob Clark <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4381> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4381>
-rw-r--r--src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c b/src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c
index 70234173411..a171cbe7a3c 100644
--- a/src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c
+++ b/src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c
@@ -25,7 +25,7 @@
#include "ir3_compiler.h"
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
-#include "mesa/main/macros.h"
+#include "util/u_math.h"
static inline struct ir3_ubo_range
get_ubo_load_range(nir_intrinsic_instr *instr)
@@ -53,7 +53,7 @@ gather_ubo_ranges(nir_shader *nir, nir_intrinsic_instr *instr,
/* If this is an indirect on UBO 0, we'll still lower it back to
* load_uniform. Set the range to cover all of UBO 0.
*/
- state->range[0].end = align(nir->num_uniforms * 16, 16 * 4);
+ state->range[0].end = ALIGN(nir->num_uniforms * 16, 16 * 4);
}
return;