nir: add shader_info::source_sha1, its initialization and printing
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13869>
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#define SHADER_INFO_H
|
||||
|
||||
#include "util/bitset.h"
|
||||
#include "util/sha1/sha1.h"
|
||||
#include "shader_enums.h"
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -125,6 +126,9 @@ typedef struct shader_info {
|
||||
/* Shader is internal, and should be ignored by things like NIR_PRINT */
|
||||
bool internal;
|
||||
|
||||
/* SHA1 of the original source, used by shader detection in drivers. */
|
||||
uint8_t source_sha1[SHA1_DIGEST_LENGTH];
|
||||
|
||||
/** The shader stage, such as MESA_SHADER_VERTEX. */
|
||||
gl_shader_stage stage:8;
|
||||
|
||||
|
Reference in New Issue
Block a user