mesa/src
Gregory Hainaut 03d1de387e mesa: avoid NULL ptr in prog parameter name
Context: _mesa_add_parameter is sometimes[0] called with a
NULL name as a mean of an unnamed parameter.

Allowing NULL pointer as a name means that it must be NULL checked
each access. So far it isn't always[1] true.

Parameter name is only used for debug purpose (printf) and
to lookup the index/location of the program by the application.

Conclusion, there is no valid reason to use a NULL pointer instead of
an empty string. So it was decided to use an empty string which avoid all
issues related to NULL pointer

[0]: texture gather offsets glsl opcode and st_init_atifs_prog
[1]: at least shader cache, st_nir_lookup_parameter_index and some printfs

Issue found by piglit 'texturegatheroffsets' tests on Nouveau

v4: new patch based on Nicolai/Timothy/ilia discussion
Signed-off-by: Gregory Hainaut <gregory.hainaut@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-04-12 14:30:28 +10:00
..
amd radv: Implement pipeline statistics queries. 2017-04-11 09:33:17 +02:00
compiler glsl: use the BA1 macro for textureQueryLevels() 2017-04-11 10:24:57 +02:00
egl Android: drop Android 4.4 (KitKat) support 2017-03-22 17:53:31 +00:00
gallium swr: [rasterizer core] Disable 8x2 tile backend 2017-04-11 18:01:03 -05:00
gbm gbm: Assert modifiers and count are copacetic 2017-04-09 09:29:57 -07:00
getopt
glx glx: silence uninitialized var warning 2017-04-07 13:46:44 -06:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel i965/fs: Take into account lower frequency of conditional blocks in spilling cost heuristic. 2017-04-11 15:28:54 -07:00
loader loader: use drmGetDevice[s]2 API 2017-03-15 11:37:55 +00:00
mapi mesa: add GL_ARB_shader_ballot boilerplate 2017-04-05 15:25:40 +02:00
mesa mesa: avoid NULL ptr in prog parameter name 2017-04-12 14:30:28 +10:00
util util: fix MSVC warning in u_align_u32() 2017-04-03 13:09:05 -06:00
vulkan vulkan/wsi/wayland: Pass damage through to the compositor 2017-04-03 13:51:08 -07:00
Makefile.am intel/vulkan: Get rid of recursive make 2017-03-13 11:16:35 +00:00
SConscript