瀏覽代碼

intel/eu: Use a struct copy instead of a memcpy

The memcpy had the wrong size and this was causing crashes on 32-bit
builds of the driver.

Fixes: 6a9525bf67 "intel/eu: Switch to a logical state stack"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106830
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
tags/18.2-branchpoint
Jason Ekstrand 7 年之前
父節點
當前提交
01ad2067bb
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/intel/compiler/brw_eu.c

+ 1
- 1
src/intel/compiler/brw_eu.c 查看文件

@@ -289,7 +289,7 @@ void brw_set_default_acc_write_control(struct brw_codegen *p, unsigned value)
void brw_push_insn_state( struct brw_codegen *p )
{
assert(p->current != &p->stack[BRW_EU_MAX_INSN_STACK-1]);
memcpy(p->current + 1, p->current, sizeof(brw_inst));
*(p->current + 1) = *p->current;
p->current++;
}


Loading…
取消
儲存