mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
st/nine: Drop USER_INDEX_BUFFERS check
This fixes4a883966c1where the PIPE_CAP was removed. Now USER_INDEX_BUFFERS are always enabled remove the check and only check for cmst_active directly. v2: Axel pointed out the code was still needed when cmst was inactive, Rebase on master too v3: Drop struct member user_ibufs also && fixup shortlog (Edward). v4: Fix negation v5: Use the right variable name csmt != cmst Fixes:4a883966c1("gallium: remove PIPE_CAP_USER_INDEX_BUFFERS") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99953 Reported-and-tested-by: Vinson Lee <vlee@freedesktop.org> (v1) Cc: Marek Olšák <marek.olsak@amd.com> Cc: Axel Davy <axel.davy@ens.fr> Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net> Signed-off-by: Mike Lothian <mike@fireburn.co.uk> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
This commit is contained in:
parent
abb1c645c4
commit
47c49f6190
2 changed files with 1 additions and 3 deletions
|
|
@ -473,7 +473,6 @@ NineDevice9_ctor( struct NineDevice9 *This,
|
|||
/* Allocate upload helper for drivers that suck (from st pov ;). */
|
||||
|
||||
This->driver_caps.user_vbufs = GET_PCAP(USER_VERTEX_BUFFERS) && !This->csmt_active;
|
||||
This->driver_caps.user_ibufs = GET_PCAP(USER_INDEX_BUFFERS) && !This->csmt_active;
|
||||
This->driver_caps.user_cbufs = GET_PCAP(USER_CONSTANT_BUFFERS);
|
||||
This->driver_caps.user_sw_vbufs = This->screen_sw->get_param(This->screen_sw, PIPE_CAP_USER_VERTEX_BUFFERS);
|
||||
This->driver_caps.user_sw_cbufs = This->screen_sw->get_param(This->screen_sw, PIPE_CAP_USER_CONSTANT_BUFFERS);
|
||||
|
|
@ -2896,7 +2895,7 @@ NineDevice9_DrawIndexedPrimitiveUP( struct NineDevice9 *This,
|
|||
vbuf.buffer_offset -= base;
|
||||
vbuf.user_buffer = NULL;
|
||||
}
|
||||
if (!This->driver_caps.user_ibufs) {
|
||||
if (This->csmt_active) {
|
||||
u_upload_data(This->context.pipe->stream_uploader,
|
||||
0,
|
||||
(prim_count_to_vertex_count(PrimitiveType, PrimitiveCount)) * ibuf.index_size,
|
||||
|
|
|
|||
|
|
@ -127,7 +127,6 @@ struct NineDevice9
|
|||
|
||||
struct {
|
||||
boolean user_vbufs;
|
||||
boolean user_ibufs;
|
||||
boolean user_cbufs;
|
||||
boolean user_sw_vbufs;
|
||||
boolean user_sw_cbufs;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue