llvmpipe->tex_timestamp = lp_screen->timestamp;
llvmpipe->dirty |= LP_NEW_SAMPLER_VIEW;
}
-
- if (llvmpipe->dirty & (LP_NEW_FS |
+
+ /* This needs LP_NEW_RASTERIZER because of draw_prepare_shader_outputs(). */
+ if (llvmpipe->dirty & (LP_NEW_RASTERIZER |
+ LP_NEW_FS |
LP_NEW_VS))
compute_vertex_info(llvmpipe);
if (llvmpipe->dirty & LP_NEW_CONSTANTS)
lp_setup_set_fs_constants(llvmpipe->setup,
- Elements(llvmpipe->constants[PIPE_SHADER_FRAGMENT]),
+ ARRAY_SIZE(llvmpipe->constants[PIPE_SHADER_FRAGMENT]),
llvmpipe->constants[PIPE_SHADER_FRAGMENT]);
if (llvmpipe->dirty & (LP_NEW_SAMPLER_VIEW))