i965: Add a mechanism for sending native primitives into the driver
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 7 Jul 2014 22:11:45 +0000 (15:11 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 15 Aug 2014 17:33:41 +0000 (10:33 -0700)
commit3f0f2c7f7d558a96e540bed3bfb4de835e9f40e0
tree7f3fdab07488bb9a6a0fd1fba12500912c3eed82
parentff7a2fc322a0ae0a36a976444b7506e9313ac630
i965: Add a mechanism for sending native primitives into the driver

The brw_draw_prims() function is the draw entry point into the driver,
and takes struct _mesa_prim for input.  We want to be able to feed
native primitives into the driver, and to that end we introduce
BRW_PRIM_OFFSET, which lets use describe geometry using the native
GEN primitive types.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_vec4_gs.c