r600g: Add pkt_flag member to struct r600_command_buffer
authorTom Stellard <thomas.stellard@amd.com>
Mon, 25 Jun 2012 20:00:47 +0000 (20:00 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 9 Jul 2012 13:41:17 +0000 (13:41 +0000)
commit38be0966c7e58fb3017c222cf416ae2bdc0bee3d
treebbbcfc929a841d86cc1c8acbfbc9b28bff6dc351
parent7d0c17fe74ec0a264fb0441e6774f6708e940614
r600g: Add pkt_flag member to struct r600_command_buffer

Some packets require the shader type bit (bit 1) to be set when
used for compute shaders.  The pkt_flag will be initialized to
RADEON_CP_PACKET3_COMPUTE_MODE for any struct r600_command_buffer used
for dispatching compute shaders and it will be or'd against the result of
the PKT3 macro when adding a new packet to a struct r600_command buffer.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/drivers/r600/r600_pipe.h