broadcom/vc5: Increase simulator memory for tex-miplevel-selection.
authorEric Anholt <eric@anholt.net>
Mon, 20 Nov 2017 20:26:49 +0000 (12:26 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 20 Nov 2017 21:52:33 +0000 (13:52 -0800)
We were overflowing, because of all the little 4k allocations for CLs that
were getting expanded to 128kb in the simulator due to the GMP alignment.

src/gallium/drivers/vc5/vc5_simulator.c

index fc6a38d372bf3f0dd154ea169c267706fb53b4e9..d027593d92673c40634345a82f04deeb08ff1b5a 100644 (file)
@@ -676,7 +676,7 @@ vc5_simulator_init_global(void)
         }
 
         sim_state.v3d = v3d_hw_auto_new(NULL);
-        v3d_hw_alloc_mem(sim_state.v3d, 256 * 1024 * 1024);
+        v3d_hw_alloc_mem(sim_state.v3d, 1024 * 1024 * 1024);
         sim_state.mem_base =
                 v3d_hw_get_mem(sim_state.v3d, &sim_state.mem_size,
                                &sim_state.mem);