mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
rusticl/spirv: add print method
Signed-off-by: Karol Herbst <kherbst@redhat.com> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439>
This commit is contained in:
parent
ea1250d0bf
commit
2639cff15c
2 changed files with 7 additions and 0 deletions
|
|
@ -263,6 +263,12 @@ impl SPIRVBin {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn print(&self) {
|
||||
unsafe {
|
||||
clc_dump_spirv(&self.spirv, stderr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for SPIRVBin {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include "rusticl_mesa_inline_bindings_wrapper.h"
|
||||
|
||||
#include "compiler/clc/clc.h"
|
||||
#include "compiler/clc/clc_helpers.h"
|
||||
#include "nir_types.h"
|
||||
#include "spirv/nir_spirv.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue