spec/arb_vertex_program/vp-address-04: skip
spec/arb_vertex_type_2_10_10_10_rev/attrib-p-type-size-match: skip
spec/arb_viewport_array/display-list: skip
-spec/arb_viewport_array/render-viewport-2: fail
spec/ati_envmap_bumpmap/ati_envmap_bumpmap-bump: skip
spec/egl 1.4/egl-blob-cache: skip
spec/egl 1.4/egl-context-priority: skip
spec/oes_texture_view/rendering-formats/render to gl_rgb8ui as gl_rgb8ui: skip
spec/oes_texture_view/texsubimage-layers pbo: skip
spec/oes_texture_view/texsubimage-levels pbo: skip
-spec/oes_viewport_array/render-viewport-2: fail
wgl/wgl-multi-context-single-window: skip
wgl/wgl-multi-window-single-context: skip
wgl/wgl-sanity: skip
summary:
name: results
---- --------
- pass: 21837
- fail: 217
+ pass: 21839
+ fail: 215
crash: 0
skip: 1446
timeout: 0
int viewport_index = 0;
int num_written_clipdistance =
draw_current_shader_num_written_clipdistances(pvs->draw);
- unsigned verts_per_prim = u_vertices_per_prim(prim_info->prim);
if (uses_vp_idx) {
viewport_index = u_bitcast_f2u(out->data[viewport_index_output][0]);
}
assert(pos != -1);
+ unsigned prim_idx = 0, prim_vert_idx = 0;
for (j = 0; j < info->count; j++) {
float *position = out->data[pos];
unsigned mask = 0x0;
if (uses_vp_idx) {
/* only change the viewport_index for the leading vertex */
- if (!(j % verts_per_prim)) {
+ if (prim_vert_idx == (prim_info->primitive_lengths[prim_idx])) {
+ prim_idx++;
+ prim_vert_idx = 0;
viewport_index = u_bitcast_f2u(out->data[viewport_index_output][0]);
viewport_index = draw_clamp_viewport_idx(viewport_index);
}
+ prim_vert_idx++;
}
float *scale = pvs->draw->viewports[viewport_index].scale;
float *trans = pvs->draw->viewports[viewport_index].translate;
const struct draw_prim_info *prim_info,
const struct draw_vertex_info *vert_info)
{
+ /* viewport index requires primitive boundaries to get correct vertex */
+ if (draw_current_shader_uses_viewport_index(draw))
+ return TRUE;
switch (prim_info->prim) {
case PIPE_PRIM_LINES_ADJACENCY:
case PIPE_PRIM_LINE_STRIP_ADJACENCY: