diff options
author | Francisco Jerez <[email protected]> | 2010-10-29 21:56:50 +0200 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2010-10-31 02:44:45 +0200 |
commit | f2098e0fefbbcd72df4c8283d195beae4a113f35 (patch) | |
tree | 645ff4cc0be04ab6106be1781b1dba86170d093f /src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c | |
parent | 6daaf4535998a05ec6e974828cee33c513d2b5a2 (diff) |
dri/nouveau: Split out the scratch helpers to a separate file.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c index 394f3c9b500..4565fcc353b 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c @@ -295,7 +295,7 @@ vbo_maybe_split(struct gl_context *ctx, const struct gl_client_array **arrays, if (render->mode == VBO && (stride = get_max_client_stride(ctx, arrays))) vert_avail = MIN2(vert_avail, - RENDER_SCRATCH_SIZE / stride); + NOUVEAU_SCRATCH_SIZE / stride); if (max_index - min_index > vert_avail || (ib && ib->count > idx_avail)) { @@ -337,8 +337,8 @@ vbo_bind_vertices(struct gl_context *ctx, const struct gl_client_array **arrays, } else { int j, n = max_index - min_index + 1; char *sp = (char *)array->Ptr + delta; - char *dp = get_scratch_vbo(ctx, n * a->stride, - &a->bo, &a->offset); + char *dp = nouveau_get_scratch( + ctx, n * a->stride, &a->bo, &a->offset); /* Array in client memory, move it to * a scratch buffer obj. */ |