intel/compiler: Add a U32 reloc type
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8637>
This commit is contained in:

committed by
Marge Bot

parent
55508bbe66
commit
d055ac9bdf
@@ -289,6 +289,9 @@ brw_write_shader_relocs(const struct intel_device_info *devinfo,
|
||||
if (prog_data->relocs[i].id == values[j].id) {
|
||||
uint32_t value = values[j].value + prog_data->relocs[i].delta;
|
||||
switch (prog_data->relocs[i].type) {
|
||||
case BRW_SHADER_RELOC_TYPE_U32:
|
||||
*(uint32_t *)dst = value;
|
||||
break;
|
||||
case BRW_SHADER_RELOC_TYPE_MOV_IMM:
|
||||
brw_update_reloc_imm(devinfo, dst, value);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user