diff options
author | Alejandro Piñeiro <apinheiro@igalia.com> | 2021-06-10 00:21:45 +0200 |
---|---|---|
committer | Alejandro Piñeiro <apinheiro@igalia.com> | 2021-06-22 11:34:06 +0200 |
commit | 26af7ef67fd8d1b6bb22e9332984136ec61b358b (patch) | |
tree | 2f8225fb4e2b125d053d8be68346abaeaf8e47af /src/gallium/drivers/v3d/v3d_uniforms.c | |
parent | f257c79ea4e5aebba33b37ccc7e59ebf3d0ac037 (diff) |
v3dv/build: meson infrastructure for multi-hw-version support
We follow the same approach that v3d. We compile the files that
depends on the version several times, passing a different version each
time. We link all those per-version libs on the main library.
Note that right now we only support version == 42, so the array of
supported versions is one-sized.
Also note that although we were doing a previous work to split
hw-version dependant code from general code, this is the first commit
that only inject the current V3D_VERSION on the former.
We have two cases where we hardcode the V3D_VERSION (as a full
wrapping would be an overkill) that we need to include here to avoid
warnings/errors if we do that before or after.
Having some exceptions also happens on v3d. As we are here we add some
comment on v3d clarifying that.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11310>
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_uniforms.c')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_uniforms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_uniforms.c b/src/gallium/drivers/v3d/v3d_uniforms.c index 5811d07ecdf..e6ec49f6cd3 100644 --- a/src/gallium/drivers/v3d/v3d_uniforms.c +++ b/src/gallium/drivers/v3d/v3d_uniforms.c @@ -27,6 +27,10 @@ #include "v3d_context.h" #include "compiler/v3d_compiler.h" + +/* We don't expect that the packets we use in this file change across across + * hw versions, so we just include directly the v33 header + */ #include "broadcom/cle/v3d_packet_v33_pack.h" static uint32_t |