mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 12:10:09 +01:00
glsl: Add support for int -> uint implicit conversions
This is required for ARB_gpu_shader5. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
1ace51f091
commit
240974e93f
1 changed files with 8 additions and 0 deletions
|
|
@ -176,6 +176,14 @@ get_conversion_operation(const glsl_type *to, const glsl_type *from,
|
|||
default: return (ir_expression_operation)0;
|
||||
}
|
||||
|
||||
case GLSL_TYPE_UINT:
|
||||
if (!state->is_version(400, 0) && !state->ARB_gpu_shader5_enable)
|
||||
return (ir_expression_operation)0;
|
||||
switch (from->base_type) {
|
||||
case GLSL_TYPE_INT: return ir_unop_i2u;
|
||||
default: return (ir_expression_operation)0;
|
||||
}
|
||||
|
||||
default: return (ir_expression_operation)0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue