<div dir="ltr"><div>Acked-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br><br></div>I'll push it.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 13, 2017 at 3:10 PM, Grazvydas Ignotas <span dir="ltr"><<a href="mailto:notasas@gmail.com" target="_blank">notasas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">VK_ICD_WSI_PLATFORM_MAX is used, but a duplicate from wsi_common.h .<br>
<br>
Signed-off-by: Grazvydas Ignotas <<a href="mailto:notasas@gmail.com">notasas@gmail.com</a>><br>
---<br>
no commit access<br>
requested by Emil:<br>
<a href="https://lists.freedesktop.org/archives/mesa-dev/2017-January/140733.html" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>archives/mesa-dev/2017-<wbr>January/140733.html</a><br>
<br>
src/intel/vulkan/anv_private.h | 15 ---------------<br>
src/intel/vulkan/anv_util.c | 19 -------------------<br>
2 files changed, 34 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_<wbr>private.h b/src/intel/vulkan/anv_<wbr>private.h<br>
index 2342fcb..afa5cbb 100644<br>
--- a/src/intel/vulkan/anv_<wbr>private.h<br>
+++ b/src/intel/vulkan/anv_<wbr>private.h<br>
@@ -95,9 +95,7 @@ extern "C" {<br>
#define MAX_PUSH_CONSTANTS_SIZE 128<br>
#define MAX_DYNAMIC_BUFFERS 16<br>
#define MAX_IMAGES 8<br>
-#define MAX_SAMPLES_LOG2 4 /* SKL supports 16 samples */<br>
<br>
-#define anv_noreturn __attribute__((__noreturn__))<br>
#define anv_printflike(a, b) __attribute__((__format__(__<wbr>printf__, a, b)))<br>
<br>
static inline uint32_t<br>
@@ -243,9 +241,6 @@ void anv_loge_v(const char *format, va_list va);<br>
#define anv_validate if (0)<br>
#endif<br>
<br>
-void anv_abortf(const char *format, ...) anv_noreturn anv_printflike(1, 2);<br>
-void anv_abortfv(const char *format, va_list va) anv_noreturn;<br>
-<br>
#define stub_return(v) \<br>
do { \<br>
anv_finishme("stub %s", __func__); \<br>
@@ -495,8 +490,6 @@ struct anv_bo *anv_scratch_pool_alloc(struct anv_device *device,<br>
<br>
extern struct anv_dispatch_table dtable;<br>
<br>
-#define VK_ICD_WSI_PLATFORM_MAX 5<br>
-<br>
struct anv_physical_device {<br>
VK_LOADER_DATA _loader_data;<br>
<br>
@@ -1893,14 +1886,6 @@ ANV_DEFINE_NONDISP_HANDLE_<wbr>CASTS(anv_render_pass, VkRenderPass)<br>
ANV_DEFINE_NONDISP_HANDLE_<wbr>CASTS(anv_sampler, VkSampler)<br>
ANV_DEFINE_NONDISP_HANDLE_<wbr>CASTS(anv_shader_module, VkShaderModule)<br>
<br>
-#define ANV_DEFINE_STRUCT_CASTS(__anv_<wbr>type, __VkType) \<br>
- \<br>
- static inline const __VkType * \<br>
- __anv_type ## _to_ ## __VkType(const struct __anv_type *__anv_obj) \<br>
- { \<br>
- return (const __VkType *) __anv_obj; \<br>
- }<br>
-<br>
/* Gen-specific function declarations */<br>
#ifdef genX<br>
# include "anv_genX.h"<br>
diff --git a/src/intel/vulkan/anv_util.c b/src/intel/vulkan/anv_util.c<br>
index 2972cd2..6408ac8 100644<br>
--- a/src/intel/vulkan/anv_util.c<br>
+++ b/src/intel/vulkan/anv_util.c<br>
@@ -63,25 +63,6 @@ __anv_finishme(const char *file, int line, const char *format, ...)<br>
fprintf(stderr, "%s:%d: FINISHME: %s\n", file, line, buffer);<br>
}<br>
<br>
-void anv_noreturn anv_printflike(1, 2)<br>
-anv_abortf(const char *format, ...)<br>
-{<br>
- va_list va;<br>
-<br>
- va_start(va, format);<br>
- anv_abortfv(format, va);<br>
- va_end(va);<br>
-}<br>
-<br>
-void anv_noreturn<br>
-anv_abortfv(const char *format, va_list va)<br>
-{<br>
- fprintf(stderr, "vk: error: ");<br>
- vfprintf(stderr, format, va);<br>
- fprintf(stderr, "\n");<br>
- abort();<br>
-}<br>
-<br>
VkResult<br>
__vk_errorf(VkResult error, const char *file, int line, const char *format, ...)<br>
{<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.7.4<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>