aboutsummaryrefslogtreecommitdiff
path: root/tests/test_virgl_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_virgl_cmd.c')
-rw-r--r--tests/test_virgl_cmd.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/test_virgl_cmd.c b/tests/test_virgl_cmd.c
index d845ef50..4c8d6895 100644
--- a/tests/test_virgl_cmd.c
+++ b/tests/test_virgl_cmd.c
@@ -67,7 +67,7 @@ START_TEST(virgl_test_overlap_obj_id)
}
END_TEST
-#ifdef PIPE_ARCH_LITTLE_ENDIAN
+#if UTIL_ARCH_LITTLE_ENDIAN
static const uint32_t test_green = 0xff00ff00;
#else
static const uint32_t test_green = 0x00ff00ff;
@@ -372,6 +372,15 @@ START_TEST(virgl_test_render_simple)
virgl_encode_bind_shader(&ctx, fs_handle, PIPE_SHADER_FRAGMENT);
}
+ /* link shader */
+ {
+ uint32_t handles[PIPE_SHADER_TYPES];
+ memset(handles, 0, sizeof(handles));
+ handles[PIPE_SHADER_VERTEX] = vs_handle;
+ handles[PIPE_SHADER_FRAGMENT] = fs_handle;
+ virgl_encode_link_shader(&ctx, handles);
+ }
+
/* set blend state */
{
struct pipe_blend_state blend;