mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-28 10:00:46 +00:00
st/glsl_to_tgsi: add st_get_program_binary_driver_sha1() helper
This will be used by ARB_get_program_binary. Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
9eebc55cc2
commit
a34262aed7
@ -30,6 +30,12 @@
|
||||
#include "program/ir_to_mesa.h"
|
||||
#include "util/u_memory.h"
|
||||
|
||||
void
|
||||
st_get_program_binary_driver_sha1(struct gl_context *ctx, uint8_t *sha1)
|
||||
{
|
||||
disk_cache_compute_key(ctx->Cache, NULL, 0, sha1);
|
||||
}
|
||||
|
||||
static void
|
||||
write_stream_out_to_cache(struct blob *blob,
|
||||
struct pipe_shader_state *tgsi)
|
||||
|
@ -32,6 +32,9 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void
|
||||
st_get_program_binary_driver_sha1(struct gl_context *ctx, uint8_t *sha1);
|
||||
|
||||
void
|
||||
st_serialise_tgsi_program(struct gl_context *ctx, struct gl_program *prog);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user