mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
use the new macro
This commit is contained in:
parent
2ba6e1fa71
commit
983b6a73e1
2 changed files with 2 additions and 3 deletions
|
|
@ -88,8 +88,7 @@ struct draw_context *draw_create( void )
|
|||
/* Statically allocate maximum sized vertices for the cache - could be cleverer...
|
||||
*/
|
||||
{
|
||||
const unsigned size = (MAX_VERTEX_SIZE + 0x0f) & ~0x0f;
|
||||
char *tmp = align_malloc(VS_QUEUE_LENGTH * size, 16);
|
||||
char *tmp = align_malloc(VS_QUEUE_LENGTH * MAX_VERTEX_ALLOCATION, 16);
|
||||
if (!tmp)
|
||||
goto fail;
|
||||
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ static void fetch_pipeline_prepare( struct draw_pt_middle_end *middle,
|
|||
|
||||
fpme->nr_fetch = nr;
|
||||
//fpme->pipeline_vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float);
|
||||
fpme->pipeline_vertex_size = (MAX_VERTEX_SIZE + 0x0f) & ~0x0f;
|
||||
fpme->pipeline_vertex_size = MAX_VERTEX_ALLOCATION;
|
||||
fpme->hw_vertex_size = vinfo->size * 4;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue