fd/decode: Build generate_rd executable rather

A seperate meson project with mesa as a subproject was required to
compile the generate_rd executable for replaying rddecompiler
generated source. That approach was overly complicated, now the
generate_rd executable is now compiled as a part of building the
freedreno tools with a blank generate-rd.cc file that can be replaced
with the source generated by rddecompiler.

Signed-off-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28253>
This commit is contained in:
Mark Collins
2024-03-18 14:30:29 +00:00
committed by Marge Bot
parent bdd89dad1c
commit 69d347e42f
4 changed files with 32 additions and 49 deletions

View File

@@ -467,7 +467,7 @@ Given the address space bounds the generated program creates a new ``rd`` which
could be used to override cmdstream with 'replay'. Generated ``rd`` is not replayable
on its own and depends on buffers provided by the source ``rd``.
C source could be compiled using rdcompiler-meson.build as an example.
C source could be compiled by putting it into src/freedreno/decode/generate-rd.cc.
The workflow would look like this:
@@ -476,15 +476,15 @@ The workflow would look like this:
.. code-block:: sh
./rddecompiler -s %cmd_stream_n% example.rd > generate_rd.c
./rddecompiler -s %cmd_stream_n% example.rd > src/freedreno/decode/generate-rd.cc
3. Edit the command stream;
4. Compile it back, see rdcompiler-meson.build for the instructions;
3. Edit the command stream;;
4. Compile and deploy freedreno tools;
5. Plug the generator into cmdstream replay:
.. code-block:: sh
./replay --override=%cmd_stream_№% --generator=~/generate_rd
./replay --override=%cmd_stream_№% --generator=generate_rd
6. Repeat 3-5.