microsoft/compiler: domainLocation component index needs to be i8

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28339>
This commit is contained in:
Jesse Natalie
2024-03-22 14:00:04 -07:00
committed by Marge Bot
parent 007b0fdff0
commit 811bed8a23
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ static struct predefined_func_descr predefined_funcs[] = {
{"dx.op.outputControlPointID", "i", "i", DXIL_ATTR_KIND_READ_NONE},
{"dx.op.gsInstanceID", "i", "i", DXIL_ATTR_KIND_READ_NONE},
{"dx.op.viewID", "i", "i", DXIL_ATTR_KIND_READ_NONE},
{"dx.op.domainLocation", "f", "ii", DXIL_ATTR_KIND_READ_NONE},
{"dx.op.domainLocation", "f", "ic", DXIL_ATTR_KIND_READ_NONE},
{"dx.op.legacyF16ToF32", "f", "ii", DXIL_ATTR_KIND_READ_ONLY},
{"dx.op.legacyF32ToF16", "i", "if", DXIL_ATTR_KIND_READ_ONLY},
{"dx.op.makeDouble", "g", "iii", DXIL_ATTR_KIND_READ_NONE},
+1 -1
View File
@@ -3292,7 +3292,7 @@ emit_load_tess_coord(struct ntd_context *ctx,
for (unsigned i = 0; i < num_coords; ++i) {
unsigned component_idx = i;
const struct dxil_value *component = dxil_module_get_int32_const(&ctx->mod, component_idx);
const struct dxil_value *component = dxil_module_get_int8_const(&ctx->mod, component_idx);
if (!component)
return false;