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
Kenneth Graunke
a3f77eceb4
iris: slab allocate transfers
...
apparently we need this for u_threaded_context
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5165308169
iris: don't crash on shader perf logs
2019-02-21 10:26:07 -08:00
Kenneth Graunke
f20fc950a7
iris: fix depth bounds clamp enables
...
fixes depthrange-clear among others
2019-02-21 10:26:07 -08:00
Kenneth Graunke
eb274a31bc
iris: fix clip flagging on fb changes
2019-02-21 10:26:07 -08:00
Kenneth Graunke
0232fbc2c4
iris: comment out l/a/i/la
...
in hopes of r/rg fallbacks
2019-02-21 10:26:07 -08:00
Kenneth Graunke
cf34dd7a61
iris: actually handle array layers in blits
2019-02-21 10:26:07 -08:00
Kenneth Graunke
33a17d566f
iris: keep DISCARD_RANGE
...
this isn't really an iris_bo_map flag, but the various resource mappers
want to check for it to avoid making temp copies.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
c0ab9c9890
iris: actually set cube bit properly
2019-02-21 10:26:07 -08:00
Kenneth Graunke
d849501f4c
iris: rename map->stride
2019-02-21 10:26:07 -08:00
Kenneth Graunke
36301bbe40
iris: fix zoffset asserts with 2DArray/Cube
2019-02-21 10:26:07 -08:00
Kenneth Graunke
7f39f4843f
iris: SBE change stash
...
not used yet, but want to flag it so I don't forget
2019-02-21 10:26:07 -08:00
Kenneth Graunke
8a080223e6
iris: just malloc one iris_genx_state instead of a bunch of oddball pieces
...
Things that are gen-specific can go in iris_genx_state. Things that are
gen-agnostic can go directly in ice->state.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
a7e0edffb6
iris: dead pointer
2019-02-21 10:26:07 -08:00
Kenneth Graunke
ccec5bab5b
iris: implement border color, fix other sampler nonsense
2019-02-21 10:26:07 -08:00
Kenneth Graunke
8a16249285
iris: border color memory zone :(
...
They took away our pointer bits, so now we need a pile of special code
to handle this instead of just using u_upload_mgr. :(
2019-02-21 10:26:07 -08:00
Kenneth Graunke
1c19e3b21f
iris: don't include binder in surface VMA range
2019-02-21 10:26:07 -08:00
Kenneth Graunke
1cea195a95
iris: state ref tuple
2019-02-21 10:26:07 -08:00
Kenneth Graunke
c0e80a8d0a
iris: null surface for unbound textures
...
avoids crashes...may not be really right
2019-02-21 10:26:07 -08:00