mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
r300g: don't check for vertex and index buffer bind flags
This commit is contained in:
parent
beb358809e
commit
bce36d1556
2 changed files with 2 additions and 4 deletions
|
|
@ -447,8 +447,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
|
|||
memset(&vb, 0, sizeof(vb));
|
||||
vb.target = PIPE_BUFFER;
|
||||
vb.format = PIPE_FORMAT_R8_UNORM;
|
||||
vb.bind = PIPE_BIND_VERTEX_BUFFER;
|
||||
vb.usage = PIPE_USAGE_IMMUTABLE;
|
||||
vb.usage = PIPE_USAGE_STATIC;
|
||||
vb.width0 = sizeof(float) * 16;
|
||||
vb.height0 = 1;
|
||||
vb.depth0 = 1;
|
||||
|
|
|
|||
|
|
@ -174,8 +174,7 @@ struct pipe_resource *r300_buffer_create(struct pipe_screen *screen,
|
|||
|
||||
/* Alloc constant buffers and SWTCL buffers in RAM. */
|
||||
if (templ->bind & PIPE_BIND_CONSTANT_BUFFER ||
|
||||
(!r300screen->caps.has_tcl &&
|
||||
(templ->bind & (PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER)))) {
|
||||
!r300screen->caps.has_tcl) {
|
||||
rbuf->malloced_buffer = align_malloc(templ->width0, 64);
|
||||
return &rbuf->b.b;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue