search for: st_translate_program

Displaying 9 results from an estimated 9 matches for "st_translate_program".

2015 Aug 27
2
gallium state tracker calls calloc for 0 sizes arrays ?
...*/ } block. Interestingly enough if I allow malloc(0) to proceed from ElectricFence, then the glretrace runs fine, and even renders correctly, where as running the same gl command stream from libreoffice impress leads to missrendering on nv3c. So 2 questions: 1) Is it normal / expected for st_translate_program() to get called with an empty but not NULL proginfo->Parameters resp. num_immediates == 0 ? If not where would I begin to look for finding the culprit of this ? 2) Since the glretrace does work outside of libreoffice impress, I think it may have something to do with the visual chosen by libre...
2015 Aug 27
2
[Mesa-dev] gallium state tracker calls calloc for 0 sizes arrays ?
...to proceed from ElectricFence, >> then the glretrace runs fine, and even renders correctly, where as >> running the same gl command stream from libreoffice impress leads >> to missrendering on nv3c. >> >> So 2 questions: >> >> 1) Is it normal / expected for st_translate_program() to get called >> with an empty but not NULL proginfo->Parameters resp. num_immediates == 0 ? >> >> If not where would I begin to look for finding the culprit of this ? > > Yes, it's normal. OK, thanks for the clear answer on this. >> 2) Since the glretrace d...
2016 Mar 10
8
[PATCH mesa 0/3] tgsi and nouveau global / local / opencl-input mem support
Hi, Here are patches which implement the support for OpenCL kernel input parameters we discussed. They also add the tgsi parsing bits for adding support for global / local mem, but no implementation yet. Regards, Hans
2016 Mar 10
1
[Mesa-dev] [PATCH mesa 2/3] tgsi: Add support for global / local / input MEMORY
..._declaration_range > diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp > b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp > index 26e463e..9b8bf8e 100644 > --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp > +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp > @@ -6281,7 +6281,7 @@ st_translate_program( > } > > if (program->use_shared_memory) > - t->shared_memory = ureg_DECL_shared_memory(ureg); > + t->shared_memory = ureg_DECL_memory(ureg, TGSI_MEMORY_TYPE_SHARED); > > for (i = 0; i < program->shader->NumImages; i++) { > if (...
2016 Mar 16
5
[PATCH mesa v2 1/3] tgsi: Fix decl.Atomic and .Shared not propagating when parsing tgsi text
When support for decl.Atomic and .Shared was added, tgsi_build_declaration was not updated to propagate these properly. Signed-off-by: Hans de Goede <hdegoede at redhat.com> Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu> --- Changes in v2: -Add Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu> --- src/gallium/auxiliary/tgsi/tgsi_build.c | 6 ++++++ 1 file changed, 6
2016 Mar 10
0
[PATCH mesa 2/3] tgsi: Add support for global / local / input MEMORY
...ng : 3; }; struct tgsi_declaration_range diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 26e463e..9b8bf8e 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -6281,7 +6281,7 @@ st_translate_program( } if (program->use_shared_memory) - t->shared_memory = ureg_DECL_shared_memory(ureg); + t->shared_memory = ureg_DECL_memory(ureg, TGSI_MEMORY_TYPE_SHARED); for (i = 0; i < program->shader->NumImages; i++) { if (program->images_used & (1 &lt...
2016 Mar 16
0
[PATCH mesa v2 2/3] tgsi: Add support for global / private / input MEMORY
...ng : 3; }; struct tgsi_declaration_range diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 1841405..ff2e082 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -6345,7 +6345,7 @@ st_translate_program( } if (program->use_shared_memory) - t->shared_memory = ureg_DECL_shared_memory(ureg); + t->shared_memory = ureg_DECL_memory(ureg, TGSI_MEMORY_TYPE_SHARED); for (i = 0; i < program->shader->NumImages; i++) { if (program->images_used & (1 &lt...
2016 Mar 10
0
[Mesa-dev] [PATCH mesa 2/3] tgsi: Add support for global / local / input MEMORY
...gt; diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp >> b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp >> index 26e463e..9b8bf8e 100644 >> --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp >> +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp >> @@ -6281,7 +6281,7 @@ st_translate_program( >> } >> >> if (program->use_shared_memory) >> - t->shared_memory = ureg_DECL_shared_memory(ureg); >> + t->shared_memory = ureg_DECL_memory(ureg, TGSI_MEMORY_TYPE_SHARED); >> >> for (i = 0; i < program->shader->Num...
2015 Aug 27
3
[Mesa-dev] gallium state tracker calls calloc for 0 sizes arrays ?
...glretrace runs fine, and even renders correctly, where as >>>> running the same gl command stream from libreoffice impress leads >>>> to missrendering on nv3c. >>>> >>>> So 2 questions: >>>> >>>> 1) Is it normal / expected for st_translate_program() to get called >>>> with an empty but not NULL proginfo->Parameters resp. num_immediates == 0 >>>> ? >>>> >>>> If not where would I begin to look for finding the culprit of this ? >>> >>> >>> Yes, it's normal. >&g...