On Wed, 6 Apr 2022 at 23:05, Zebediah Figura zfigura@codeweavers.com wrote:
@@ -326,17 +344,44 @@ static void parse_test_directive(struct shader_runner *runner, const char *line)
[...]
memset(¶ms, 0, sizeof(params));
params.slot = 0;
params.type = RESOURCE_TYPE_VERTEX_BUFFER;
params.data = malloc(sizeof(quad));
memcpy(params.data, quad, sizeof(quad));
params.data_size = sizeof(quad);
set_resource(runner, runner->ops->create_resource(runner, ¶ms));
I don't think this is an issue right now, but note that this means "draw quad" is going to override previously set resources, so a subsequent "draw" might not do what you'd expect.