diff options
author | Dave Airlie <airlied@redhat.com> | 2018-06-05 16:34:20 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-06-05 16:34:20 +1000 |
commit | 7a8e65c820282467a5b4953495ed5492dc6b45f9 (patch) | |
tree | 59adca1cb44af5c17b9667ad24bcd50e8f7c0dde | |
parent | 8fd8f223b0c7dbf4618e4d83fac40615e2170d55 (diff) |
one more stypeprefix conversionvirgl-gles31-sketch2
-rw-r--r-- | src/vrend_shader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 172a981..8344c97 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -2221,21 +2221,21 @@ translate_image_store(struct dump_ctx *ctx, enum tgsi_return_type itype; const char *formatstr = get_internalformat_string(ctx->images[sreg_index].decl.Format, &itype); char ms_str[32] = {}; - const char *stypeprefix = ""; + enum vrend_type_qualifier stypeprefix = TYPE_CONVERSION_NONE; if (is_ms) { snprintf(ms_str, 32, "int(%s.w),", srcs[0]); } switch (itype) { case TGSI_RETURN_TYPE_UINT: - stypeprefix = "floatBitsToUint"; + stypeprefix = FLOAT_BITS_TO_UINT; break; case TGSI_RETURN_TYPE_SINT: - stypeprefix = "floatBitsToInt"; + stypeprefix = FLOAT_BITS_TO_INT; break; } if (dst->Register.File == TGSI_FILE_IMAGE) - snprintf(buf, 255, "imageStore(%s,%s(floatBitsToInt(%s)),%s%s(%s));\n", dsts[0], get_string(coord_prefix), srcs[0], ms_str, stypeprefix, srcs[1]); + snprintf(buf, 255, "imageStore(%s,%s(floatBitsToInt(%s)),%s%s(%s));\n", dsts[0], get_string(coord_prefix), srcs[0], ms_str, get_string(stypeprefix), srcs[1]); else snprintf(buf, 255, "%s[int(%s)>>4] = floatBitsToUint(%s);\n", dsts[0], srcs[0], srcs[1]); EMIT_BUF_WITH_RET(ctx, buf); |