zink: always use 32bit floats for so output types

doubles may be the output variable type, but the xfb output will always
be 32bit

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17404>
This commit is contained in:
Mike Blumenkrantz 2022-07-07 14:07:30 -04:00 committed by Marge Bot
parent c5ebd44850
commit a0771cd4ab

View file

@ -1322,6 +1322,7 @@ get_output_type(struct ntv_context *ctx, unsigned register_index, unsigned num_c
case GLSL_TYPE_BOOL:
return get_bvec_type(ctx, num_components);
case GLSL_TYPE_DOUBLE: //this case is misleading, as so outputs are always 32bit floats
case GLSL_TYPE_FLOAT:
return get_fvec_type(ctx, 32, num_components);
@ -1331,9 +1332,6 @@ get_output_type(struct ntv_context *ctx, unsigned register_index, unsigned num_c
case GLSL_TYPE_UINT:
return get_uvec_type(ctx, 32, num_components);
case GLSL_TYPE_DOUBLE:
return get_fvec_type(ctx, 64, num_components);
default:
unreachable("unknown type");
break;