panfrost: Inline panfrost_queue_draw() and panfrost_emit_for_draw()
[mesa.git] / src / gallium / drivers / r300 / r300_cb.h
index b373937a1f933b838a12eb41824dfcd5caf1b1a3..e031e990bd7f200d3e3179f813b3460e14b87dcf 100644 (file)
@@ -82,7 +82,7 @@
     do { \
     assert(sizeof(*(ptr)) == sizeof(uint32_t)); \
     cs_count = (size); \
-    cs_ptr = (ptr) = (uint32_t*)malloc((size) * sizeof(uint32_t)); \
+    cs_ptr = (ptr) = malloc((size) * sizeof(uint32_t)); \
 } while (0)
 
 #define END_CB do { \
@@ -99,7 +99,7 @@
     uint32_t *cs_ptr = NULL; (void) cs_ptr
 
 #define NEW_CB(ptr, size) \
-    cs_ptr = (ptr) = (uint32_t*)malloc((size) * sizeof(uint32_t))
+    cs_ptr = (ptr) = malloc((size) * sizeof(uint32_t))
 
 #define BEGIN_CB(ptr, size) cs_ptr = (ptr)
 #define END_CB