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:
Karol Herbst 2022-03-21 00:07:58 +01:00 committed by Marge Bot
parent ea1250d0bf
commit 2639cff15c
2 changed files with 7 additions and 0 deletions

View file

@ -263,6 +263,12 @@ impl SPIRVBin {
}
}
}
pub fn print(&self) {
unsafe {
clc_dump_spirv(&self.spirv, stderr);
}
}
}
impl Drop for SPIRVBin {

View file

@ -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"