diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2014-05-15 12:23:16 +0900 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2014-05-16 23:45:50 -0700 |
commit | 21792665c7923ca9e3c879727bbc7cfef4ca2582 (patch) | |
tree | 3600bb922cad4b738a55e5c63681ef1d9c98edf2 /src/mesa/main/context.c | |
parent | 872ea423ac4b62479375395ff0ebf6c7f24b713a (diff) |
glsl_to_tgsi: Make sure the 'shader' member is always initialized
Fixes the valgrind report below and random crashes with piglit on radeonsi.
==30005== Conditional jump or move depends on uninitialised value(s)
==30005== at 0xB13584E: st_translate_program (st_glsl_to_tgsi.cpp:5100)
==30005== by 0xB14698B: st_translate_fragment_program (st_program.c:747)
==30005== by 0xB14777D: st_get_fp_variant (st_program.c:824)
==30005== by 0xB11219C: get_color_fp_variant (st_cb_drawpixels.c:1042)
==30005== by 0xB1131AE: st_DrawPixels (st_cb_drawpixels.c:1154)
==30005== by 0xAFF8806: _mesa_DrawPixels (drawpix.c:162)
==30005== by 0x4EB86DB: stub_glDrawPixels (generated_dispatch.c:6640)
==30005== by 0x4F1DF08: piglit_visualize_image (piglit-util-gl.c:1574)
==30005== by 0x40691D: draw_image_to_window_system_fb(int, bool) (draw-buffers-common.cpp:733)
==30005== by 0x406C8B: draw_reference_image(bool, bool) (draw-buffers-common.cpp:854)
==30005== by 0x40722A: piglit_display (alpha-to-coverage-dual-src-blend.cpp:117)
==30005== by 0x4EA7168: run_test (piglit_fbo_framework.c:52)
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
(cherry picked from commit 2bab95973d8ad3a84f62670143d6f26c230d9582)
Diffstat (limited to 'src/mesa/main/context.c')
0 files changed, 0 insertions, 0 deletions