mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 02:30:12 +01:00
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:
parent
c5ebd44850
commit
a0771cd4ab
1 changed files with 1 additions and 3 deletions
|
|
@ -1322,6 +1322,7 @@ get_output_type(struct ntv_context *ctx, unsigned register_index, unsigned num_c
|
||||||
case GLSL_TYPE_BOOL:
|
case GLSL_TYPE_BOOL:
|
||||||
return get_bvec_type(ctx, num_components);
|
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:
|
case GLSL_TYPE_FLOAT:
|
||||||
return get_fvec_type(ctx, 32, num_components);
|
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:
|
case GLSL_TYPE_UINT:
|
||||||
return get_uvec_type(ctx, 32, num_components);
|
return get_uvec_type(ctx, 32, num_components);
|
||||||
|
|
||||||
case GLSL_TYPE_DOUBLE:
|
|
||||||
return get_fvec_type(ctx, 64, num_components);
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
unreachable("unknown type");
|
unreachable("unknown type");
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue