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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user