v3dv: add dummy implementations for the packet definition generator

For now we are only interested in being able to include the header
file for format definitions, so this is enough. When we start actually
emitting packets we will need to provide proper hooks.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga 2019-12-02 11:23:08 +01:00 committed by Marge Bot
parent 8d9772f6a7
commit 9cc736f5aa

View file

@ -56,6 +56,15 @@
#include "vk_alloc.h"
#include "simulator/v3d_simulator.h"
/* FIXME: hooks for the packet definition functions. */
static inline void
pack_emit_reloc(void *cl, const void *reloc) {}
#define __gen_user_data char
#define __gen_address_type char
#define __gen_emit_reloc pack_emit_reloc
#define __gen_address_offset(reloc) (0)
/*
* FIXME: confirm value
*