Add thread_spawner message target support.

This commit is contained in:
Zou Nan hai 2008-06-18 15:04:11 -07:00 committed by Damien Lespiau
parent 2033aea3dd
commit 26afe90126
2 changed files with 18 additions and 1 deletions

View File

@ -1308,6 +1308,19 @@ struct brw_instruction
GLuint end_of_thread:1;
} dp_write;
struct {
GLuint opcode:1;
GLuint requester_type:1;
GLuint pad:2;
GLuint resource_select:1;
GLuint pad1:11;
GLuint response_length:4;
GLuint msg_length:4;
GLuint msg_target:4;
GLuint pad2:3;
GLuint end_of_thread:1;
} thread_spawner;
struct {
GLuint pad:16;
GLuint response_length:4;

View File

@ -540,10 +540,14 @@ msgtarget: NULL_TOKEN
$$.bits3.urb.used = $5;
$$.bits3.urb.complete = $6;
}
| THREAD_SPAWNER
| THREAD_SPAWNER LPAREN INTEGER COMMA INTEGER COMMA
INTEGER RPAREN
{
$$.bits3.generic.msg_target =
BRW_MESSAGE_TARGET_THREAD_SPAWNER;
$$.bits3.thread_spawner.opcode = $3;
$$.bits3.thread_spawner.requester_type = $5;
$$.bits3.thread_spawner.resource_select = $7;
}
;