for debugging
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
p.mem_ctx = ralloc_context(NULL);
p.shader = _mesa_new_shader(0, MESA_SHADER_FRAGMENT);
+#ifdef DEBUG
+ p.shader->SourceChecksum = 0xf18ed; /* fixed */
+#endif
p.shader->ir = new(p.shader) exec_list;
state = new(p.shader) _mesa_glsl_parse_state(ctx, MESA_SHADER_FRAGMENT,
p.shader);
if (shader) {
shader->Stage = stage;
shader->Name = name;
+#ifdef DEBUG
+ shader->SourceChecksum = 0xa110c; /* alloc */
+#endif
_mesa_init_shader(shader);
}
return shader;