venus: query experimental features in one call
authorChia-I Wu <olvaffe@gmail.com>
Thu, 3 Jun 2021 20:05:30 +0000 (13:05 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Thu, 3 Jun 2021 20:39:27 +0000 (13:39 -0700)
commitae4ef6491dba3c4f723cf6d2a2e22e73dac2d449
tree47c989da148967df730881f74332542d041bb5b2
parentd08930f2fa28cdf1317130984ffd5938ed21e940
venus: query experimental features in one call

It is simpler.  But I mainly want to work around

../src/virtio/vulkan/vn_cs.h:173:4: error: argument 1 null where non-null expected [-Werror=nonnull]
  173 |    memcpy(val, dec->cur, val_size);

We trust virglrenderer and it never instructs the decoder to memcpy to
pData when it is NULL.  The compiler does not know however.  A proper
fix will be to generate

  if (!pData)
    unreachable();

to help the compiler.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11174>
src/virtio/vulkan/vn_device.c