mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d: Return E_INVALIDARG for invalid pipeline state desc.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d266a5f7d0
commit
7892a1e938
@ -1866,7 +1866,7 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
|
|||||||
if (!(format = vkd3d_get_format(desc->DSVFormat, true)))
|
if (!(format = vkd3d_get_format(desc->DSVFormat, true)))
|
||||||
{
|
{
|
||||||
WARN("Invalid DXGI format %#x.\n", desc->DSVFormat);
|
WARN("Invalid DXGI format %#x.\n", desc->DSVFormat);
|
||||||
hr = E_FAIL;
|
hr = E_INVALIDARG;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1915,7 +1915,7 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
|
|||||||
if (!(format = vkd3d_get_format(desc->RTVFormats[i], false)))
|
if (!(format = vkd3d_get_format(desc->RTVFormats[i], false)))
|
||||||
{
|
{
|
||||||
WARN("Invalid DXGI format %#x.\n", desc->RTVFormats[i]);
|
WARN("Invalid DXGI format %#x.\n", desc->RTVFormats[i]);
|
||||||
hr = E_FAIL;
|
hr = E_INVALIDARG;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2007,14 +2007,14 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
|
|||||||
if (!(format = vkd3d_get_format(e->Format, false)))
|
if (!(format = vkd3d_get_format(e->Format, false)))
|
||||||
{
|
{
|
||||||
WARN("Invalid DXGI format %#x.\n", e->Format);
|
WARN("Invalid DXGI format %#x.\n", e->Format);
|
||||||
hr = E_FAIL;
|
hr = E_INVALIDARG;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e->InputSlot >= ARRAY_SIZE(graphics->input_rates))
|
if (e->InputSlot >= ARRAY_SIZE(graphics->input_rates))
|
||||||
{
|
{
|
||||||
WARN("Invalid input slot %#x.\n", e->InputSlot);
|
WARN("Invalid input slot %#x.\n", e->InputSlot);
|
||||||
hr = E_FAIL;
|
hr = E_INVALIDARG;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2048,7 +2048,7 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
FIXME("Unhandled input slot class %#x on input element %u.\n", e->InputSlotClass, i);
|
FIXME("Unhandled input slot class %#x on input element %u.\n", e->InputSlotClass, i);
|
||||||
hr = E_FAIL;
|
hr = E_INVALIDARG;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2056,7 +2056,7 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
|
|||||||
{
|
{
|
||||||
FIXME("Input slot class %#x on input element %u conflicts with earlier input slot class %#x.\n",
|
FIXME("Input slot class %#x on input element %u conflicts with earlier input slot class %#x.\n",
|
||||||
e->InputSlotClass, e->InputSlot, graphics->input_rates[e->InputSlot]);
|
e->InputSlotClass, e->InputSlot, graphics->input_rates[e->InputSlot]);
|
||||||
hr = E_FAIL;
|
hr = E_INVALIDARG;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
graphics->input_rates[e->InputSlot] = input_rate;
|
graphics->input_rates[e->InputSlot] = input_rate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user