mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/ir: Pass NULL locations to vkd3d_shader_error() in use_flat_interpolation().
This commit is contained in:
Notes:
Henri Verbeet
2025-08-28 20:32:12 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1687
@@ -6894,7 +6894,6 @@ static enum vkd3d_result vsir_program_materialize_undominated_ssas_to_temps(stru
|
|||||||
static bool use_flat_interpolation(const struct vsir_program *program,
|
static bool use_flat_interpolation(const struct vsir_program *program,
|
||||||
struct vkd3d_shader_message_context *message_context, bool *flat)
|
struct vkd3d_shader_message_context *message_context, bool *flat)
|
||||||
{
|
{
|
||||||
static const struct vkd3d_shader_location no_loc;
|
|
||||||
const struct vkd3d_shader_parameter1 *parameter;
|
const struct vkd3d_shader_parameter1 *parameter;
|
||||||
|
|
||||||
*flat = false;
|
*flat = false;
|
||||||
@@ -6904,13 +6903,13 @@ static bool use_flat_interpolation(const struct vsir_program *program,
|
|||||||
|
|
||||||
if (parameter->type != VKD3D_SHADER_PARAMETER_TYPE_IMMEDIATE_CONSTANT)
|
if (parameter->type != VKD3D_SHADER_PARAMETER_TYPE_IMMEDIATE_CONSTANT)
|
||||||
{
|
{
|
||||||
vkd3d_shader_error(message_context, &no_loc, VKD3D_SHADER_ERROR_VSIR_NOT_IMPLEMENTED,
|
vkd3d_shader_error(message_context, NULL, VKD3D_SHADER_ERROR_VSIR_NOT_IMPLEMENTED,
|
||||||
"Unsupported flat interpolation parameter type %#x.", parameter->type);
|
"Unsupported flat interpolation parameter type %#x.", parameter->type);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (parameter->data_type != VKD3D_SHADER_PARAMETER_DATA_TYPE_UINT32)
|
if (parameter->data_type != VKD3D_SHADER_PARAMETER_DATA_TYPE_UINT32)
|
||||||
{
|
{
|
||||||
vkd3d_shader_error(message_context, &no_loc, VKD3D_SHADER_ERROR_VSIR_INVALID_DATA_TYPE,
|
vkd3d_shader_error(message_context, NULL, VKD3D_SHADER_ERROR_VSIR_INVALID_DATA_TYPE,
|
||||||
"Invalid flat interpolation parameter data type %#x.", parameter->data_type);
|
"Invalid flat interpolation parameter data type %#x.", parameter->data_type);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user