mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
i965: bump VS thread number to 60 on SNB
Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
This commit is contained in:
parent
7a61957424
commit
6c324777a6
2 changed files with 11 additions and 2 deletions
|
|
@ -1561,6 +1561,7 @@ static void emit_vertex_write( struct brw_vs_compile *c)
|
||||||
int eot;
|
int eot;
|
||||||
GLuint len_vertex_header = 2;
|
GLuint len_vertex_header = 2;
|
||||||
int next_mrf, i;
|
int next_mrf, i;
|
||||||
|
int msg_len;
|
||||||
|
|
||||||
if (c->key.copy_edgeflag) {
|
if (c->key.copy_edgeflag) {
|
||||||
brw_MOV(p,
|
brw_MOV(p,
|
||||||
|
|
@ -1727,13 +1728,20 @@ static void emit_vertex_write( struct brw_vs_compile *c)
|
||||||
|
|
||||||
eot = (c->first_overflow_output == 0);
|
eot = (c->first_overflow_output == 0);
|
||||||
|
|
||||||
|
msg_len = c->nr_outputs + 2 + len_vertex_header;
|
||||||
|
if (intel->gen >= 6) {
|
||||||
|
/* interleaved urb write message length for gen6 should be multiple of 2 */
|
||||||
|
if ((msg_len % 2) != 0)
|
||||||
|
msg_len++;
|
||||||
|
}
|
||||||
|
|
||||||
brw_urb_WRITE(p,
|
brw_urb_WRITE(p,
|
||||||
brw_null_reg(), /* dest */
|
brw_null_reg(), /* dest */
|
||||||
0, /* starting mrf reg nr */
|
0, /* starting mrf reg nr */
|
||||||
c->r0, /* src */
|
c->r0, /* src */
|
||||||
0, /* allocate */
|
0, /* allocate */
|
||||||
1, /* used */
|
1, /* used */
|
||||||
MIN2(c->nr_outputs + 1 + len_vertex_header, (BRW_MAX_MRF-1)), /* msg len */
|
MIN2(msg_len - 1, (BRW_MAX_MRF - 1)), /* msg len */
|
||||||
0, /* response len */
|
0, /* response len */
|
||||||
eot, /* eot */
|
eot, /* eot */
|
||||||
eot, /* writes complete */
|
eot, /* writes complete */
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,8 @@ upload_vs_state(struct brw_context *brw)
|
||||||
OUT_BATCH((1 << GEN6_VS_DISPATCH_START_GRF_SHIFT) |
|
OUT_BATCH((1 << GEN6_VS_DISPATCH_START_GRF_SHIFT) |
|
||||||
(brw->vs.prog_data->urb_read_length << GEN6_VS_URB_READ_LENGTH_SHIFT) |
|
(brw->vs.prog_data->urb_read_length << GEN6_VS_URB_READ_LENGTH_SHIFT) |
|
||||||
(0 << GEN6_VS_URB_ENTRY_READ_OFFSET_SHIFT));
|
(0 << GEN6_VS_URB_ENTRY_READ_OFFSET_SHIFT));
|
||||||
OUT_BATCH((0 << GEN6_VS_MAX_THREADS_SHIFT) |
|
|
||||||
|
OUT_BATCH(((60 - 1) << GEN6_VS_MAX_THREADS_SHIFT) | /* max 60 threads for gen6 */
|
||||||
GEN6_VS_STATISTICS_ENABLE |
|
GEN6_VS_STATISTICS_ENABLE |
|
||||||
GEN6_VS_ENABLE);
|
GEN6_VS_ENABLE);
|
||||||
ADVANCE_BATCH();
|
ADVANCE_BATCH();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue