<div dir="ltr"><div>I just sent exactly the same patch. :-) I don't care which we land<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 5, 2017 at 9:56 AM, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
<br>
Introduce stubs to anv_gem_stub.c that match the anv_gem.c ones.<br>
Otherwise we may get link-time errors, when building the tests.<br>
<br>
v2: Introduce all the missing stubs at once.<br>
<br>
Cc: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br>
Cc: Vinson Lee <<a href="mailto:vlee@freedesktop.org">vlee@freedesktop.org</a>><br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=100574" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=100574</a><br>
Fixes: c964f0e485d ("anv: Query the kernel for reset status")<br>
Fixes: 651ec926fc1 ("anv: Add support for 48-bit addresses")<br>
Fixes: 060a6434eca ("anv: Advertise larger heap sizes")<br>
Signed-off-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
---<br>
I've intentionally kept the order the same identical to the anv_gem.c.<br>
This way we can easily grep & diff in the future ;-)<br>
---<br>
src/intel/vulkan/anv_gem_<wbr>stubs.c | 19 +++++++++++++++++++<br>
1 file changed, 19 insertions(+)<br>
<br>
diff --git a/src/intel/vulkan/anv_gem_<wbr>stubs.c b/src/intel/vulkan/anv_gem_<wbr>stubs.c<br>
index 30b40ce323a..74794d4ffe5 100644<br>
--- a/src/intel/vulkan/anv_gem_<wbr>stubs.c<br>
+++ b/src/intel/vulkan/anv_gem_<wbr>stubs.c<br>
@@ -139,11 +139,30 @@ anv_gem_destroy_context(struct anv_device *device, int context)<br>
}<br>
<br>
int<br>
+anv_gem_get_context_param(int fd, int context, uint32_t param, uint64_t *value)<br>
+{<br>
+ unreachable("Unused");<br>
+}<br>
+<br>
+int<br>
anv_gem_get_aperture(int fd, uint64_t *size)<br>
{<br>
unreachable("Unused");<br>
}<br>
<br>
+bool<br>
+anv_gem_supports_48b_<wbr>addresses(int fd)<br>
+{<br>
+ unreachable("Unused");<br>
+}<br>
+<br>
+int<br>
+anv_gem_gpu_get_reset_stats(<wbr>struct anv_device *device,<br>
+ uint32_t *active, uint32_t *pending)<br>
+{<br>
+ unreachable("Unused");<br>
+}<br>
+<br>
int<br>
anv_gem_handle_to_fd(struct anv_device *device, uint32_t gem_handle)<br>
{<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.11.1<br>
<br>
</font></span></blockquote></div><br></div>