mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
microsoft/clc: Handle a null clc logger
Fixes: 55b3980e ("microsoft/compiler: Add dxil_logger type and parameter to nir_to_dxil")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7076
Reviewed-by: Michael Tang <tangm@microsoft.com>
Tested-by: Prodea Alexandru-Liviu <liviuprodea@yahoo.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18127>
This commit is contained in:
parent
163390d762
commit
7b60414494
1 changed files with 3 additions and 3 deletions
|
|
@ -1143,11 +1143,11 @@ clc_spirv_to_dxil(struct clc_libclc *lib,
|
|||
goto err_free_dxil;
|
||||
}
|
||||
|
||||
struct dxil_logger dxil_logger = {.priv = logger->priv,
|
||||
.log = logger->error};
|
||||
struct dxil_logger dxil_logger = { .priv = logger ? logger->priv : NULL,
|
||||
.log = logger ? logger->error : NULL};
|
||||
|
||||
struct blob tmp;
|
||||
if (!nir_to_dxil(nir, &opts, &dxil_logger, &tmp)) {
|
||||
if (!nir_to_dxil(nir, &opts, logger ? &dxil_logger : NULL, &tmp)) {
|
||||
debug_printf("D3D12: nir_to_dxil failed\n");
|
||||
goto err_free_dxil;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue