i965/gen6/gs: Implement GS_OPCODE_URB_WRITE_ALLOCATE.
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 9 Jul 2014 14:28:30 +0000 (16:28 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 19 Sep 2014 13:01:15 +0000 (15:01 +0200)
commit2c85132e511bbef9a0965c69848981b1bffb5bad
tree00d07ecdbd5e3cdc70d98d6f669d69b75ca0da1b
parentd0bdd4ce983ddd52f9f4b70dced4e471c60a130c
i965/gen6/gs: Implement GS_OPCODE_URB_WRITE_ALLOCATE.

Gen6 geometry shaders need to allocate URB handles for each new vertex they
emit after the first (the URB handle for the first vertex is obtained via the
FF_SYNC message).

This opcode adds the URB allocation mechanism to regular URB writes.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp