mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 18:28:12 +02:00
r300: Print warning when stubbing derivatives
Fixes:e1c640c3a4Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14669> (cherry picked from commitd48c10fab3)
This commit is contained in:
parent
af570d37a7
commit
08e22fff13
2 changed files with 6 additions and 1 deletions
|
|
@ -31,7 +31,7 @@
|
|||
"description": "r300: Print warning when stubbing derivatives",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "e1c640c3a43d741719864b35cbf855aa82be0611"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
#include "radeon_compiler.h"
|
||||
#include "radeon_compiler_util.h"
|
||||
|
||||
#include "util/log.h"
|
||||
|
||||
static struct rc_instruction *emit1(
|
||||
struct radeon_compiler * c, struct rc_instruction * after,
|
||||
|
|
@ -1100,6 +1101,10 @@ int radeonStubDeriv(struct radeon_compiler* c,
|
|||
inst->U.I.Opcode = RC_OPCODE_MOV;
|
||||
inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000;
|
||||
|
||||
mesa_logw_once("r300: WARNING: Shader is trying to use derivatives, "
|
||||
"but the hardware doesn't support it. "
|
||||
"Expect possible misrendering (it's not a bug, do not report it).");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue