mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 10:50:16 +01:00
r600: don't try to serialized shaders translated from TGSI
TTN seems to have a problem encoding vec4[4] correctly, so that serialization might fail. Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7891 Fixes: 5b205ef (r600: Store nir shaders serialized to save memory) Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20355>
This commit is contained in:
parent
a8b6b2367e
commit
4b89a8fd00
1 changed files with 1 additions and 1 deletions
|
|
@ -395,7 +395,7 @@ int r600_pipe_shader_create(struct pipe_context *ctx,
|
|||
shader->shader.bc.ncf,
|
||||
shader->shader.bc.nstack);
|
||||
|
||||
if (!sel->nir_blob && sel->nir) {
|
||||
if (!sel->nir_blob && sel->nir && sel->ir_type != PIPE_SHADER_IR_TGSI) {
|
||||
struct blob blob;
|
||||
blob_init(&blob);
|
||||
nir_serialize(&blob, sel->nir, false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue