"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gallium/drivers/asahi/agx_state.c" between
mesa-21.2.0-rc1.tar.xz and mesa-21.2.0-rc2.tar.xz

About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code). Release candidate.

agx_state.c  (mesa-21.2.0-rc1.tar.xz):agx_state.c  (mesa-21.2.0-rc2.tar.xz)
skipping to change at line 831 skipping to change at line 831
static bool asahi_shader_key_equal(const void *a, const void *b) static bool asahi_shader_key_equal(const void *a, const void *b)
{ {
return memcmp(a, b, sizeof(struct asahi_shader_key)) == 0; return memcmp(a, b, sizeof(struct asahi_shader_key)) == 0;
} }
static void * static void *
agx_create_shader_state(struct pipe_context *pctx, agx_create_shader_state(struct pipe_context *pctx,
const struct pipe_shader_state *cso) const struct pipe_shader_state *cso)
{ {
struct agx_uncompiled_shader *so = CALLOC_STRUCT(agx_uncompiled_shader); struct agx_uncompiled_shader *so = CALLOC_STRUCT(agx_uncompiled_shader);
so->base = *cso;
if (!so) if (!so)
return NULL; return NULL;
so->base = *cso;
if (cso->type == PIPE_SHADER_IR_NIR) { if (cso->type == PIPE_SHADER_IR_NIR) {
so->nir = cso->ir.nir; so->nir = cso->ir.nir;
} else { } else {
assert(cso->type == PIPE_SHADER_IR_TGSI); assert(cso->type == PIPE_SHADER_IR_TGSI);
so->nir = tgsi_to_nir(cso->tokens, pctx->screen, false); so->nir = tgsi_to_nir(cso->tokens, pctx->screen, false);
} }
so->variants = _mesa_hash_table_create(NULL, asahi_shader_key_hash, asahi_sha der_key_equal); so->variants = _mesa_hash_table_create(NULL, asahi_shader_key_hash, asahi_sha der_key_equal);
return so; return so;
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)