d3d11: Do not generate ERR messages for unrecognized shader bytecode.
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
a36ae03c9f
commit
b9f1b0fff8
|
@ -66,7 +66,7 @@ static HRESULT shader_extract_from_dxbc(const void *dxbc, SIZE_T dxbc_length, st
|
||||||
|
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
{
|
{
|
||||||
ERR("Failed to parse shader, hr %#x\n", hr);
|
FIXME("Failed to parse shader, hr %#x.\n", hr);
|
||||||
shader_free_signature(shader_info->input_signature);
|
shader_free_signature(shader_info->input_signature);
|
||||||
shader_free_signature(shader_info->output_signature);
|
shader_free_signature(shader_info->output_signature);
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,7 @@ static HRESULT d3d_vertex_shader_init(struct d3d_vertex_shader *shader, struct d
|
||||||
shader_info.output_signature = &output_signature;
|
shader_info.output_signature = &output_signature;
|
||||||
if (FAILED(hr = shader_extract_from_dxbc(byte_code, byte_code_length, &shader_info)))
|
if (FAILED(hr = shader_extract_from_dxbc(byte_code, byte_code_length, &shader_info)))
|
||||||
{
|
{
|
||||||
ERR("Failed to extract shader, hr %#x.\n", hr);
|
WARN("Failed to extract shader, hr %#x.\n", hr);
|
||||||
wined3d_private_store_cleanup(&shader->private_store);
|
wined3d_private_store_cleanup(&shader->private_store);
|
||||||
wined3d_mutex_unlock();
|
wined3d_mutex_unlock();
|
||||||
return hr;
|
return hr;
|
||||||
|
@ -697,7 +697,7 @@ static HRESULT d3d_geometry_shader_init(struct d3d_geometry_shader *shader, stru
|
||||||
shader_info.output_signature = &output_signature;
|
shader_info.output_signature = &output_signature;
|
||||||
if (FAILED(hr = shader_extract_from_dxbc(byte_code, byte_code_length, &shader_info)))
|
if (FAILED(hr = shader_extract_from_dxbc(byte_code, byte_code_length, &shader_info)))
|
||||||
{
|
{
|
||||||
ERR("Failed to extract shader, hr %#x.\n", hr);
|
WARN("Failed to extract shader, hr %#x.\n", hr);
|
||||||
wined3d_private_store_cleanup(&shader->private_store);
|
wined3d_private_store_cleanup(&shader->private_store);
|
||||||
wined3d_mutex_unlock();
|
wined3d_mutex_unlock();
|
||||||
return hr;
|
return hr;
|
||||||
|
@ -1023,7 +1023,7 @@ static HRESULT d3d_pixel_shader_init(struct d3d_pixel_shader *shader, struct d3d
|
||||||
shader_info.output_signature = &output_signature;
|
shader_info.output_signature = &output_signature;
|
||||||
if (FAILED(hr = shader_extract_from_dxbc(byte_code, byte_code_length, &shader_info)))
|
if (FAILED(hr = shader_extract_from_dxbc(byte_code, byte_code_length, &shader_info)))
|
||||||
{
|
{
|
||||||
ERR("Failed to extract shader, hr %#x.\n", hr);
|
WARN("Failed to extract shader, hr %#x.\n", hr);
|
||||||
wined3d_private_store_cleanup(&shader->private_store);
|
wined3d_private_store_cleanup(&shader->private_store);
|
||||||
wined3d_mutex_unlock();
|
wined3d_mutex_unlock();
|
||||||
return hr;
|
return hr;
|
||||||
|
|
Loading…
Reference in New Issue