瀏覽代碼

r600g: fix combined MEM_STREAM instructions

BURST_COUNT is clipped with ARRAY_SIZE, so set it to the max value
to avoid clipping.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
tags/i965-primitive-restart-v2
Vadim Girlin 13 年之前
父節點
當前提交
c97632642a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      src/gallium/drivers/r600/r600_shader.c

+ 3
- 1
src/gallium/drivers/r600/r600_shader.c 查看文件

@@ -1014,7 +1014,9 @@ static int r600_shader_from_tgsi(struct r600_pipe_context * rctx, struct r600_pi
output.type = V_SQ_CF_ALLOC_EXPORT_WORD0_SQ_EXPORT_WRITE;
output.burst_count = 1;
output.barrier = 1;
output.array_size = 0;
/* array_size is an upper limit for the burst_count
* with MEM_STREAM instructions */
output.array_size = 0xFFF;
output.comp_mask = (1 << so.output[i].num_components) - 1;
if (ctx.bc->chip_class >= EVERGREEN) {
switch (so.output[i].output_buffer) {

Loading…
取消
儲存