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:
Jason Ekstrand
2020-09-04 12:23:35 -05:00
committed by Marge Bot
parent 55508bbe66
commit d055ac9bdf
2 changed files with 5 additions and 0 deletions

View File

@@ -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;