Lines Matching refs:i
61 int i,j; in test_unique_buffers() local
63 for(i = 0; i < buffer_count; i++) in test_unique_buffers()
65 for(j = 0; j < i; j++) in test_unique_buffers()
67 ASSERT(buffer_list[i] != buffer_list[j]); in test_unique_buffers()
107 unsigned int i, j; in test() local
109 for(i=0; i < NUM_BUFFER_TYPES; i++) in test()
113 input_data[i] = malloc(buffer_sizes[i]+4); in test()
114 ASSERT(input_data[i]); in test()
117 for(j = buffer_sizes[i] / 4; j--;) in test()
119 input_data[i][j] = random(); in test()
123 data = malloc(buffer_sizes[i]); in test()
125 memcpy(data, input_data[i], buffer_sizes[i]); in test()
128 …_status = vaCreateBuffer(va_dpy, context, buffer_types[i], buffer_sizes[i], 1, data, &buffer_ids[i… in test()
130 status("vaCreateBuffer created buffer %08x of type %d\n", buffer_ids[i], buffer_types[i]); in test()
133 memset(data, 0, buffer_sizes[i]); in test()
137 for(i=0; i < NUM_BUFFER_TYPES; i++) in test()
141 va_status = vaMapBuffer(va_dpy, buffer_ids[i], &data); in test()
143 status("vaMapBuffer mapped buffer %08x\n", buffer_ids[i]); in test()
146 ASSERT( memcmp(input_data[i], data, buffer_sizes[i]) == 0 ); in test()
149 for(i=0; i < NUM_BUFFER_TYPES; i++) in test()
151 va_status = vaUnmapBuffer(va_dpy, buffer_ids[i]); in test()
154 va_status = vaDestroyBuffer(va_dpy, buffer_ids[i]); in test()
157 free(input_data[i]); in test()