Kenneth Graunke
8e7b0deee2
iris: Don't reserve new binding table section unless things are dirty
2019-02-21 10:26:07 -08:00
Kenneth Graunke
870f2e8434
iris: implement texture/memory barriers
2019-02-21 10:26:07 -08:00
Kenneth Graunke
82ee971497
iris: drop unused bo parameter
2019-02-21 10:26:07 -08:00
Kenneth Graunke
f0159d5ca3
iris: update bindings when changing programs
...
the binding table layout depends on program info.
not known to fix anything yet.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
b0e9c5797b
iris: fix for disabling ssbos
2019-02-21 10:26:07 -08:00
Kenneth Graunke
b7b061c4e2
iris: fix SSBO indexing
...
st/nir offsets SSBO indexes by MaxABOs. This is not what we want,
as it bloats the binding tables. We'll need to adjust it to use
info->num_abos as the offset and buffer base instead. For now,
just use the inefficient format to get us rolling. We can add a
PIPE_CAP later.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
376c7253f8
iris: enable SSBOs
2019-02-21 10:26:07 -08:00
Kenneth Graunke
75709d982b
iris: fix TBO alignment to match 965
2019-02-21 10:26:07 -08:00
Kenneth Graunke
77b9219818
iris: unbind compiled shaders if none are present
...
avoids the case where you have a stale compiled shader bound, but no
uncompiled shader bound, which is not just boats, but an entire marina
2019-02-21 10:26:07 -08:00
Kenneth Graunke
fd5ed7b46b
iris: shorten loop
...
num_ubos doesn't include Tim's magic UBO for regular uniforms, so +1
2019-02-21 10:26:07 -08:00
Kenneth Graunke
bf795b0244
iris: emit binding table for atomic counters and SSBOs
2019-02-21 10:26:07 -08:00
Kenneth Graunke
2d5f545464
iris: implement set_shader_buffers
...
for SSBOs/ABOs. We just stream out SURFACE_STATE for now...since it's
a set_* API...and the buffer offset may change...not sure where else
we'd do it.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
541cb60e7e
iris: export get_shader_info
2019-02-21 10:26:07 -08:00
Kenneth Graunke
f0558ca22c
iris: fix msaa flipping filters
2019-02-21 10:26:07 -08:00
Kenneth Graunke
2c73d7e3f1
iris: expose more things that we already support
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5b8dd5f303
iris: fix blorp filters
...
we have to switch to blorp enums after the rebase, but also we were
probably doing it wrong for MSAA before this.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
3aa1fcc65a
iris: hack around samples confusion
2019-02-21 10:26:07 -08:00
Kenneth Graunke
2c15f38a29
iris: point sprite enables
2019-02-21 10:26:07 -08:00
Kenneth Graunke
c60a4de1f5
iris: reemit blend state for alpha test function changes
...
fixes bin/fbo-alphatest-formats GL_EXT_texture_snorm
2019-02-21 10:26:07 -08:00
Kenneth Graunke
a4036635b1
iris: fix Z24
...
This was backwards.
thanks to Jason Ekstrand for realizing that I was seeing the wrong bits.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
a12a370d7b
iris: fix EmitNoIndirect
...
we were using pipe stages, which are ordered dumbly for historical
reasons. we want gl_shader_stage here. this got us the wrong options
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5bd861de8b
iris: assert about passthrough shaders to make this easier to detect
...
otherwise it just silently fails and looks like some obscure problem
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5e19885d5a
iris: fill out MAX_PATCH_VERTICES
2019-02-21 10:26:07 -08:00
Kenneth Graunke
3e9e3121e5
iris: fix SGVS when there are no valid vertex elements
...
tessellation nop.shader_test now passes
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5520a54bc5
iris: vertex ID, instance ID
2019-02-21 10:26:07 -08:00
Kenneth Graunke
a9083bdb71
iris: don't emit SO_BUFFERS and SO_DECL_LIST unless streamout is enabled
...
Otherwise on the first draw, if XFB isn't enabled, we get a pile of
MI_NOOPS where SO_BUFFERS should be
2019-02-21 10:26:07 -08:00
Kenneth Graunke
ebb960c6d3
iris: compile a TCS...don't bother with passthrough yet
2019-02-21 10:26:07 -08:00
Kenneth Graunke
9aa8be3d8e
iris: TES program key inputs
2019-02-21 10:26:07 -08:00
Kenneth Graunke
fcee21da6b
iris: fix texture buffer stride
2019-02-21 10:26:07 -08:00
Kenneth Graunke
3c41d4cf3f
iris: fix sampler views of TBOs
...
we can't read levels/layers, they're invalid for PIPE_BUFFER
2019-02-21 10:26:07 -08:00
Kenneth Graunke
6e7e49cc4f
iris: fix crash
2019-02-21 10:26:07 -08:00
Kenneth Graunke
841fc3e3ca
iris: record FS NOS
2019-02-21 10:26:07 -08:00
Kenneth Graunke
d223b316ad
iris: NOS mechanics
2019-02-21 10:26:07 -08:00
Kenneth Graunke
a6d480f892
iris: bind state helper function
2019-02-21 10:26:07 -08:00
Kenneth Graunke
48b826cdaf
iris: s/hwcso/state/g
2019-02-21 10:26:07 -08:00
Kenneth Graunke
aeb6fc8782
iris: bits of multisample program key
2019-02-21 10:26:07 -08:00
Kenneth Graunke
e6b1cc2106
iris: save query type
2019-02-21 10:26:07 -08:00
Kenneth Graunke
44ba48eba7
iris: draw indirect support?
2019-02-21 10:26:07 -08:00
Kenneth Graunke
b030671298
iris: fix CC_VIEWPORT
...
I was confusing depth bounds test with depth clamping
2019-02-21 10:26:07 -08:00
Kenneth Graunke
fdbc205552
iris: multislice transfer maps
2019-02-21 10:26:07 -08:00
Kenneth Graunke
44248d16d2
iris: disable 6x MSAA support
2019-02-21 10:26:07 -08:00
Kenneth Graunke
bc1b4db3b3
iris: fix sample mask for MSAA-off
2019-02-21 10:26:07 -08:00
Kenneth Graunke
7b8c0f058e
iris: actually pin the buffers
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5635abadef
iris: fix SO_DECL_LIST
2019-02-21 10:26:07 -08:00
Kenneth Graunke
dc3b927e97
iris: bother setting program_string_id...
...
not sure how useful this really is...
./bin/ext_transform_feedback-tessellation triangles flat_first
is hitting a case where we rebind the same VS program, but with
different streamout info...which isn't in the key...but is in the
cache...so we don't rebuild it...
2019-02-21 10:26:07 -08:00
Kenneth Graunke
9c1cefff52
iris: set even if no outputs
2019-02-21 10:26:07 -08:00
Kenneth Graunke
cef0b8b13b
iris: streamout
2019-02-21 10:26:07 -08:00
Kenneth Graunke
059c096eff
iris: SO buffers
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5c00f5fdca
iris: Implement 3DSTATE_SO_DECL_LIST
2019-02-21 10:26:07 -08:00
Kenneth Graunke
6794f1ffb9
iris: rearrange iris_resource.h
2019-02-21 10:26:07 -08:00