Commit e5ad009b authored by Timothy Arceri's avatar Timothy Arceri

shader_runner: add basic display list support

Reviewed-by: 's avatarMarek Olšák <marek.olsak@amd.com>
parent 09b3a817
......@@ -2952,6 +2952,7 @@ piglit_display(void)
GLbitfield clear_bits = 0;
bool link_error_expected = false;
int ubo_array_index = 0;
unsigned list = 0;
if (test_start == NULL)
return PIGLIT_PASS;
......@@ -3865,6 +3866,21 @@ piglit_display(void)
active_program_interface(rest);
} else if (parse_str(line, "vertex attrib ", &rest)) {
set_vertex_attrib(rest);
} else if (parse_str(line, "newlist ", &rest)) {
GLenum mode;
REQUIRE(parse_enum_gl(rest, &mode, &rest),
"NewList mode command not understood at %s\n",
rest);
list = glGenLists(1);
glNewList(list, mode);
} else if (parse_str(line, "endlist", NULL)) {
glEndList();
} else if (parse_str(line, "calllist", NULL)) {
glCallList(list);
} else if (parse_str(line, "deletelist", NULL)) {
glDeleteLists(list, 1);
} else if ((line[0] != '\n') && (line[0] != '\0')
&& (line[0] != '#')) {
printf("unknown command \"%s\"\n", line);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment