- 26 Oct, 2018 40 commits
-
-
Axel Davy authored
A lot of these states are used only for the context, and are unused for stateblocks (which just uses the changed.* fields instead for a lot of them). Signed-off-by:
Axel Davy <davyaxel0@gmail.com>
-
Axel Davy authored
If NINE_STATE_FF_MATERIAL is set, the stateblock will upload its recorded materials matrix. If NINE_STATE_FF_LIGHTING is set, the lighting set is uploaded. These flags could be set by a NineDevice9_SetTransform call or by setting some states related to ff, but that shouldn't trigger these stateblock behaviours. We don't need to follow the context states dirtied by render states. NINE_STATE_FF_VSTRANSF is exactly the state controlling stateblock updates of transformation matrices, NINE_STATE_FF is too broad. These two changes avoid setting the two mentionned states when we shouldn't. Fixes: https://github.com/iXit/Mesa-3D/issues/320 Signed-off-by:
Axel Davy <davyaxel0@gmail.com>
-
Axel Davy authored
The device state changed.* field are never used. These fields are used only for stateblocks. Avoid setting them at all for clarity. Signed-off-by:
Axel Davy <davyaxel0@gmail.com>
-
Axel Davy authored
We avoid allocating space for never unused matrices. However we must do as if we had captured them. Thus when a D3DSBT_ALL stateblock apply has fewer matrices than device state, allocate the default matrices for the stateblock before applying. Signed-off-by:
Axel Davy <davyaxel0@gmail.com>
-
Axel Davy authored
D3DSBT_ALL stateblocks capture the transform matrices. Fixes some d3d test programs not displaying properly. Signed-off-by:
Axel Davy <davyaxel0@gmail.com>
-
Axel Davy authored
While to the application we have to track accurately all 256 world matrices (including in stateblocks), hw vertex processing enables to set a limit to the number of world matrices the hardware can access to in the advertised caps, which is 8 for nine. Thus don't bother in the stateblock code to send the updated values for the unreachable matrices. Signed-off-by:
Axel Davy <davyaxel0@gmail.com>
-
Axel Davy authored
NINE_STATE_MATERIAL was used incorrectly at one location. Replace it with the correct state. Signed-off-by:
Axel Davy <davyaxel0@gmail.com>
-
Axel Davy authored
At some point the project was to adapt the commented version to csmt. The csmt rework enabled to fix some state aliasing issues between stateblocks and internal state updates. The commented version needs a lot of work to work with that. Just drop it. Signed-off-by:
Axel Davy <davyaxel0@gmail.com>
-
Brian Paul authored
Empty initializer is not standard C. This fixes MSVC build. Trivial.
-
Jason Ekstrand authored
This lets us get rid of a bunch of duplicated error messages. Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Jason Ekstrand authored
Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Brian Paul authored
This reverts commit a5fd54f8 . The whole point was to add a way to pass -DVMX86_STATS to the build, but we can do that with a command line argument when we invoke scons. Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Nanley Chery authored
Follow the restriction of making sure the clear value is between the min and max values defined in CC_VIEWPORT. Avoids a simulator warning for some piglit tests, one of them being: ./bin/depthstencil-render-miplevels 146 d=z32f_s8 Jason found this to fix incorrect clearing on SKL. Fixes: 09948151 ("intel/blorp: Add the BDW+ optimized HZ_OP sequence to BLORP") Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net> Tested-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Eric Engestrom authored
MESA_GIT_SHA1 resolves to either an empty "" string if not build from git, or " (git-DEADBEEF)" if it is. No need to wrap it in additional "()". Fixes: 9d40ec2c "radv: Add support for VK_KHR_driver_properties." Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
Eric Engestrom authored
Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Boyuan Zhang authored
Use utility function for converting h264 pipe video profile to profile idc, instead of using array. Signed-off-by:
Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig at amd.com>
-
Boyuan Zhang authored
Use utility function for converting h264 pipe video profile to profile idc, instead of using array. Signed-off-by:
Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig at amd.com>
-
Boyuan Zhang authored
Adding a function for converting h264 pipe video profile to profile idc Signed-off-by:
Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig at amd.com>
-
Jason Ekstrand authored
Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Jason Ekstrand authored
Instead of initializing them manually, just use the type that we already have sitting there. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Jason Ekstrand authored
Previously, we would always pull the bit size from the destination which is wrong for opcodes like nir_ilt where the sources are variable-sized but the destination is a fixed size. We were getting lucky before because nir_op_ilt returns a 32-bit value and basically everyone who uses spec constants uses 32-bit ones. Cc: mesa-stable@lists.freedesktop.org Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Jason Ekstrand authored
We have a helper that does exactly what the bany_inequal was doing. It emits the same code but is a bit higher level and is designed to operate on a bvec4. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Jason Ekstrand authored
They do the same thing in the end but i2b is a bit simpler. Also, let's clean up the mess of code for SSBO handling with one line of builder. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Jason Ekstrand authored
This isn't a great solution for bit-sizes but we don't have a particularly convenient way to get a bit size from the system value enum and this keeps the lowering pass from changing it. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Jason Ekstrand authored
Instead of doing our own constant folding, we just emit instructions and let constant folding happen. This is substantially simpler and lets us use the nir_imm_bool helper instead of dealing with the const_value's ourselves. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com>
-
Jason Ekstrand authored
This requires that we rework the interface a bit to use nir_builder but that's a nice little modernization anyway. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Jason Ekstrand authored
Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Jason Ekstrand authored
Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Jason Ekstrand authored
Missed one while converting to the nir_src_as_* helpers. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Jason Ekstrand authored
Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Jason Ekstrand authored
Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Jason Ekstrand authored
Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Jason Ekstrand authored
Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Jason Ekstrand authored
Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Alex Smith authored
When depth testing is disabled, we shouldn't pay attention to the specified depthCompareOp, and just treat it as always passing. Before, if the depth test is disabled, but depthCompareOp is VK_COMPARE_OP_NEVER (e.g. from the app having zero-initialized the structure), then sanitize_stencil_face() would have incorrectly changed passOp to VK_STENCIL_OP_KEEP. v2: Roll the depthTestEnable check into the ds_aspect check below since they now both do the same thing. Fixes: 028e1137 "anv/pipeline: Be smarter about depth/stencil state" Signed-off-by:
Alex Smith <asmith@feralinteractive.com> Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Samuel Pitoiset authored
This should address the remaining failures in Batman Arkhman City. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107765 Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
Samuel Pitoiset authored
Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
Samuel Pitoiset authored
For the special R32G32B32 paths. Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
Samuel Pitoiset authored
For the special R32G32B32 paths. Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
Samuel Pitoiset authored
For the special R32G32B32 paths. Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-