mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 13:50:09 +01:00
Cell: reformattting
This commit is contained in:
parent
d4c806302e
commit
f313a1ece2
1 changed files with 6 additions and 8 deletions
|
|
@ -121,18 +121,17 @@ cell_draw_elements(struct pipe_context *pipe,
|
|||
*/
|
||||
for (i = 0; i < PIPE_ATTRIB_MAX; i++) {
|
||||
if (sp->vertex_buffer[i].buffer) {
|
||||
void *buf
|
||||
= pipe->winsys->buffer_map(pipe->winsys,
|
||||
sp->vertex_buffer[i].buffer,
|
||||
PIPE_BUFFER_FLAG_READ);
|
||||
void *buf = pipe->winsys->buffer_map(pipe->winsys,
|
||||
sp->vertex_buffer[i].buffer,
|
||||
PIPE_BUFFER_FLAG_READ);
|
||||
draw_set_mapped_vertex_buffer(draw, i, buf);
|
||||
}
|
||||
}
|
||||
/* Map index buffer, if present */
|
||||
if (indexBuffer) {
|
||||
void *mapped_indexes
|
||||
= pipe->winsys->buffer_map(pipe->winsys, indexBuffer,
|
||||
PIPE_BUFFER_FLAG_READ);
|
||||
void *mapped_indexes = pipe->winsys->buffer_map(pipe->winsys,
|
||||
indexBuffer,
|
||||
PIPE_BUFFER_FLAG_READ);
|
||||
draw_set_mapped_element_buffer(draw, indexSize, mapped_indexes);
|
||||
}
|
||||
else {
|
||||
|
|
@ -161,7 +160,6 @@ cell_draw_elements(struct pipe_context *pipe,
|
|||
draw_set_mapped_element_buffer(draw, 0, NULL);
|
||||
}
|
||||
|
||||
|
||||
/* Note: leave drawing surfaces mapped */
|
||||
cell_unmap_constant_buffers(sp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue