mesa: implement DrawTransformFeedback from ARB_transform_feedback2
authorMarek Olšák <maraeo@gmail.com>
Fri, 9 Dec 2011 16:00:23 +0000 (17:00 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 15 Dec 2011 17:50:44 +0000 (18:50 +0100)
commit14bb957b996dcc5392b8fa589bd3ffa5c55cb6b4
tree1dce64c3156c0df8ab638050dcc62365b6fb8197
parent3baaa1bbd72f67f6bc7374b2b6a16b0322006a65
mesa: implement DrawTransformFeedback from ARB_transform_feedback2

It's like DrawArrays, but the count is taken from a transform feedback
object.

This removes DrawTransformFeedback from dd_function_table and adds the same
function to GLvertexformat (with the function parameters matching GL).

The vbo_draw_func callback has a new parameter
"struct gl_transform_feedback_object *tfb_vertcount".

The rest of the code just validates states and forwards the transform
feedback object into vbo_draw_func.
26 files changed:
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_draw.h
src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
src/mesa/main/api_validate.c
src/mesa/main/api_validate.h
src/mesa/main/dd.h
src/mesa/main/mtypes.h
src/mesa/main/transformfeedback.c
src/mesa/main/transformfeedback.h
src/mesa/main/varray.h
src/mesa/main/vtxfmt.c
src/mesa/state_tracker/st_cb_rasterpos.c
src/mesa/state_tracker/st_cb_xformfb.c
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_draw.h
src/mesa/state_tracker/st_draw_feedback.c
src/mesa/tnl/t_draw.c
src/mesa/tnl/tnl.h
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_exec_array.c
src/mesa/vbo/vbo_exec_draw.c
src/mesa/vbo/vbo_rebase.c
src/mesa/vbo/vbo_save_api.c
src/mesa/vbo/vbo_save_draw.c
src/mesa/vbo/vbo_split_copy.c
src/mesa/vbo/vbo_split_inplace.c