mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
r300: fix uninitialized use in transform_vertex_ROUND
==26468== Conditional jump or move depends on uninitialised value(s) ==26468== at 0x577A190: get_readers_normal_read_callback (radeon_dataflow.c:534) ==26468== by 0x57795E7: rc_for_all_reads_src (radeon_dataflow.c:162) ==26468== by 0x577A7BB: get_readers_for_single_write (radeon_dataflow.c:709) ==26468== by 0x5779763: writes_normal (radeon_dataflow.c:212) ==26468== by 0x5779870: rc_for_all_writes_mask (radeon_dataflow.c:243) ==26468== by 0x577A93C: rc_get_readers (radeon_dataflow.c:819) ==26468== by 0x577E35E: transform_vertex_ROUND (radeon_optimize.c:1332) ==26468== by 0x577E48B: optimize_A0_loads (radeon_optimize.c:1367) ==26468== by 0x577E53E: rc_optimize (radeon_optimize.c:1393) ==26468== by 0x577767F: rc_run_compiler_passes (radeon_compiler.c:475) ==26468== by 0x57777C2: rc_run_compiler (radeon_compiler.c:498) ==26468== by 0x57747F3: r3xx_compile_vertex_program (r3xx_vertprog.c:820) Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10562 Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com> Reviewed-by: Filip Gawin <None> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33210>
This commit is contained in:
parent
6768eb31e5
commit
ba860bd914
1 changed files with 1 additions and 0 deletions
|
|
@ -1329,6 +1329,7 @@ static void
|
|||
transform_vertex_ROUND(struct radeon_compiler *c, struct rc_instruction *inst)
|
||||
{
|
||||
struct rc_reader_data readers;
|
||||
readers.ExitOnAbort = 0;
|
||||
rc_get_readers(c, inst, &readers, NULL, NULL, NULL);
|
||||
|
||||
assert(readers.ReaderCount > 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue