summaryrefslogtreecommitdiffstats
path: root/src/mesa/math/m_vector.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-06-20 10:18:41 -0700
committerEric Anholt <[email protected]>2019-07-01 11:12:15 -0700
commit52a39a332fec1e5a8d686558b9a71e42bcfcbb0f (patch)
tree188067a80775d690eed12d88827bb69d521ca2dc /src/mesa/math/m_vector.h
parent1738b38ce8ef5fec6146225306bd70690a269afa (diff)
mesa: Replace gen_matypes with a simple header for V4F/mat layout.
We can greatly simplify our builds by just hardcoding GLvector4f and GLmatrix's layouts. Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mesa/math/m_vector.h')
-rw-r--r--src/mesa/math/m_vector.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mesa/math/m_vector.h b/src/mesa/math/m_vector.h
index 5bd76b8987d..2065324556b 100644
--- a/src/mesa/math/m_vector.h
+++ b/src/mesa/math/m_vector.h
@@ -31,21 +31,14 @@
#define _M_VECTOR_H_
#include "main/glheader.h"
+#define MATH_ASM_PTR_SIZE sizeof(void *)
+#include "math/m_vector_asm.h"
-
-#define VEC_DIRTY_0 0x1
-#define VEC_DIRTY_1 0x2
-#define VEC_DIRTY_2 0x4
-#define VEC_DIRTY_3 0x8
#define VEC_MALLOC 0x10 /* storage field points to self-allocated mem*/
#define VEC_NOT_WRITEABLE 0x40 /* writable elements to hold clipped data */
#define VEC_BAD_STRIDE 0x100 /* matches tnl's prefered stride */
-#define VEC_SIZE_1 VEC_DIRTY_0
-#define VEC_SIZE_2 (VEC_DIRTY_0|VEC_DIRTY_1)
-#define VEC_SIZE_3 (VEC_DIRTY_0|VEC_DIRTY_1|VEC_DIRTY_2)
-#define VEC_SIZE_4 (VEC_DIRTY_0|VEC_DIRTY_1|VEC_DIRTY_2|VEC_DIRTY_3)