diff options
author | Eric Anholt <[email protected]> | 2014-08-22 10:34:55 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-24 22:13:25 -0700 |
commit | bbbe3b65adee44c164532d7afb4ff8fd8f88bbf4 (patch) | |
tree | 69e2a96411c4e1190cf426c70559fd82765aaaa5 /src/gallium/auxiliary/cso_cache | |
parent | 306e421887720b149be77c749108bcffcebe34f6 (diff) |
u_vbuf: Simplify the format fallback translation.
Individual caps made supporting new fallbacks more complicated than it
needed to be. Instead, just make a table of fallbacks at context init
time.
v2: Fix inverted "do we need to install vbuf?" flagging caught by Marek.
Reviewed-by: Marek Olšák <[email protected]> (v2)
Diffstat (limited to 'src/gallium/auxiliary/cso_cache')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_context.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index ca91b674855..3d8860f7b88 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -239,18 +239,8 @@ static void cso_init_vbuf(struct cso_context *cso) { struct u_vbuf_caps caps; - u_vbuf_get_caps(cso->pipe->screen, &caps); - /* Install u_vbuf if there is anything unsupported. */ - if (!caps.buffer_offset_unaligned || - !caps.buffer_stride_unaligned || - !caps.velem_src_offset_unaligned || - !caps.format_fixed32 || - !caps.format_float16 || - !caps.format_float64 || - !caps.format_norm32 || - !caps.format_scaled32 || - !caps.user_vertex_buffers) { + if (u_vbuf_get_caps(cso->pipe->screen, &caps)) { cso->vbuf = u_vbuf_create(cso->pipe, &caps, cso->aux_vertex_buffer_index); } |