projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f124f4a
)
anv: Add an align_down_npot_u32 helper
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 15 Jul 2016 18:50:20 +0000
(11:50 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 15 Jul 2016 22:48:21 +0000
(15:48 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_private.h
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_private.h
b/src/intel/vulkan/anv_private.h
index 4730641eaf2bacd5eabe7bcb53de4390a07ad639..d8a9d8782fe02700aa62f1ec0f7a94ec6e79492f 100644
(file)
--- a/
src/intel/vulkan/anv_private.h
+++ b/
src/intel/vulkan/anv_private.h
@@
-82,6
+82,12
@@
extern "C" {
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
+static inline uint32_t
+align_down_npot_u32(uint32_t v, uint32_t a)
+{
+ return v - (v % a);
+}
+
static inline uint32_t
align_u32(uint32_t v, uint32_t a)
{