mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
nv30: set usage to staging so that the buffer is allocated in GART
The code a few lines below expects to migrate the bo in question to VRAM. Since we're filling the initial data via CPU, it's more efficient to create the temporary buffer in GART. There is no "push" method implemented, otherwise we'd use that instead. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
5505845945
commit
6118bcab4e
1 changed files with 2 additions and 1 deletions
|
|
@ -115,7 +115,8 @@ nv30_transfer_rect_fragprog(struct nv30_context *nv30)
|
|||
struct pipe_context *pipe = &nv30->base.pipe;
|
||||
|
||||
if (!fp) {
|
||||
nv30->blit_fp = pipe_buffer_create(pipe->screen, 0, 0, 12 * 4);
|
||||
nv30->blit_fp =
|
||||
pipe_buffer_create(pipe->screen, 0, PIPE_USAGE_STAGING, 12 * 4);
|
||||
if (nv30->blit_fp) {
|
||||
struct pipe_transfer *transfer;
|
||||
u32 *map = pipe_buffer_map(pipe, nv30->blit_fp,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue