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) {
|
if (prog_data->relocs[i].id == values[j].id) {
|
||||||
uint32_t value = values[j].value + prog_data->relocs[i].delta;
|
uint32_t value = values[j].value + prog_data->relocs[i].delta;
|
||||||
switch (prog_data->relocs[i].type) {
|
switch (prog_data->relocs[i].type) {
|
||||||
|
case BRW_SHADER_RELOC_TYPE_U32:
|
||||||
|
*(uint32_t *)dst = value;
|
||||||
|
break;
|
||||||
case BRW_SHADER_RELOC_TYPE_MOV_IMM:
|
case BRW_SHADER_RELOC_TYPE_MOV_IMM:
|
||||||
brw_update_reloc_imm(devinfo, dst, value);
|
brw_update_reloc_imm(devinfo, dst, value);
|
||||||
break;
|
break;
|
||||||
|
@@ -681,6 +681,8 @@ enum brw_shader_reloc_id {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum brw_shader_reloc_type {
|
enum brw_shader_reloc_type {
|
||||||
|
/** An arbitrary 32-bit value */
|
||||||
|
BRW_SHADER_RELOC_TYPE_U32,
|
||||||
/** A MOV instruction with an immediate source */
|
/** A MOV instruction with an immediate source */
|
||||||
BRW_SHADER_RELOC_TYPE_MOV_IMM,
|
BRW_SHADER_RELOC_TYPE_MOV_IMM,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user