"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/compiler/nir/nir_builder.h" between
mesa-19.1.3.tar.xz and mesa-19.1.4.tar.xz

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

nir_builder.h  (mesa-19.1.3.tar.xz):nir_builder.h  (mesa-19.1.4.tar.xz)
skipping to change at line 1127 skipping to change at line 1127
static inline void static inline void
nir_store_deref(nir_builder *build, nir_deref_instr *deref, nir_store_deref(nir_builder *build, nir_deref_instr *deref,
nir_ssa_def *value, unsigned writemask) nir_ssa_def *value, unsigned writemask)
{ {
nir_store_deref_with_access(build, deref, value, writemask, nir_store_deref_with_access(build, deref, value, writemask,
(enum gl_access_qualifier)0); (enum gl_access_qualifier)0);
} }
static inline void static inline void
nir_copy_deref(nir_builder *build, nir_deref_instr *dest, nir_deref_instr *src) nir_copy_deref_with_access(nir_builder *build, nir_deref_instr *dest,
nir_deref_instr *src,
enum gl_access_qualifier dest_access,
enum gl_access_qualifier src_access)
{ {
nir_intrinsic_instr *copy = nir_intrinsic_instr *copy =
nir_intrinsic_instr_create(build->shader, nir_intrinsic_copy_deref); nir_intrinsic_instr_create(build->shader, nir_intrinsic_copy_deref);
copy->src[0] = nir_src_for_ssa(&dest->dest.ssa); copy->src[0] = nir_src_for_ssa(&dest->dest.ssa);
copy->src[1] = nir_src_for_ssa(&src->dest.ssa); copy->src[1] = nir_src_for_ssa(&src->dest.ssa);
nir_intrinsic_set_dst_access(copy, dest_access);
nir_intrinsic_set_src_access(copy, src_access);
nir_builder_instr_insert(build, &copy->instr); nir_builder_instr_insert(build, &copy->instr);
} }
static inline void
nir_copy_deref(nir_builder *build, nir_deref_instr *dest, nir_deref_instr *src)
nir_copy_deref_with_access(build, dest, src,
(enum gl_access_qualifier) 0,
(enum gl_access_qualifier) 0);
static inline nir_ssa_def * static inline nir_ssa_def *
nir_load_var(nir_builder *build, nir_variable *var) nir_load_var(nir_builder *build, nir_variable *var)
{ {
return nir_load_deref(build, nir_build_deref_var(build, var)); return nir_load_deref(build, nir_build_deref_var(build, var));
} }
static inline void static inline void
nir_store_var(nir_builder *build, nir_variable *var, nir_ssa_def *value, nir_store_var(nir_builder *build, nir_variable *var, nir_ssa_def *value,
unsigned writemask) unsigned writemask)
{ {
 End of changes. 3 change blocks. 
1 lines changed or deleted 14 lines changed or added

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