mesa: Refactor copying of linked program data.
authorPaul Berry <stereotype441@gmail.com>
Sat, 23 Mar 2013 17:51:53 +0000 (10:51 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 2 Aug 2013 03:21:26 +0000 (20:21 -0700)
commit13022c9c5f3cb67c76ed76eae9cd8a49355874a5
tree8ff6407c6b2766ac0c5b462e9120f6001b5a333e
parent2548092ad80156a407281a124f833a6a93fbf2f3
mesa: Refactor copying of linked program data.

This patch creates a single function to copy the the UsesClipDistance
flag from gl_shader_program.Vert to gl_vertex_program.  Previously
this logic was duplicated in the i965-specific function
brw_link_shader() and the core mesa function _mesa_ir_link_shader().

This logic will have to be expanded to support geometry shaders, and I
don't want to have to update it in two separate places.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/main/mtypes.h
src/mesa/main/shaderapi.c
src/mesa/main/shaderapi.h
src/mesa/program/ir_to_mesa.cpp