aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* st/nine: Fix check for ff specularAxel Davy2016-12-201-2/+7
| | | | | | | | | Fix the check for computing ff specular. This seems to match the opengl behavior, and give the correct output on windows. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Do not saturate illumination coefficients in ffAxel Davy2016-12-201-4/+0
| | | | | | | Fixes bad rendering of a test app. Wine has the same behaviour. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Fix ff COLOR0 w component computationAxel Davy2016-12-201-21/+10
| | | | | | | | | | The computation was wrong. COLOR0's last component should be equal to the material diffuse w component. The behaviour was checked with a test app on Windows. Wine has the same behaviour. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Fix specular enable for alphaAxel Davy2016-12-201-1/+1
| | | | | | | | | | | Apparently specular enable doesn't affect the alpha channel. Fixes https://github.com/iXit/Mesa-3D/issues/253 Behaviour comfirmed looking in wine sources. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Ignore MULTISAMPLEMASK when RT is not multisampledAxel Davy2016-12-202-3/+3
| | | | | | | | | We were ignoring MULTISAMPLEMASK for non-maskable multisample modes, but we were missing the non-multisampled case. Fixes a crash in Halo. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Add new driconf options to control DISCARD behaviourAxel Davy2016-12-203-2/+21
| | | | | | See the patch for the new controls added. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Rework buffer presentation pathAxel Davy2016-12-201-48/+132
| | | | | | Use the new API for DISCARD. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Fix a leak in Swapchain dtorAxel Davy2016-12-202-16/+16
| | | | | | | | Count properly the number of backbuffers, and use the new info to release the correct number of buffers Signed-off-by: Axel Davy <[email protected]>
* st/nine: Silent warnings with guid_strAxel Davy2016-12-203-0/+12
| | | | | | | In non-debug build, the variables are unused, and thus trigger a compilation warning. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Do not generate gallium NOP on d3d NOPAxel Davy2016-12-201-1/+8
| | | | | | | Some drivers crash if NOP is generated. Besides there is no point to generate NOP. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Fix leak in user constant upload pathAxel Davy2016-12-202-29/+39
| | | | | | | The new code properly releases the previous buffers allocated. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Correctly release sw cursor imageAxel Davy2016-12-201-0/+1
| | | | | | | cursor.image is used for software cursor emulation. It wasn't released. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Handle when cursor stride is not what is expectedAxel Davy2016-12-202-2/+19
| | | | | | | | SetCursor assumes for now a 32x32 argb cursor with pitch 128. 32x32 argb doesn't have pitch 128 on all hw, thus use a temporary surface with the correct pitch when needed. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Avoid crash on empty Draw*UpAxel Davy2016-12-201-0/+2
| | | | | | | | Ignore empty draw calls. Avoid assertion fault when such draw calls happen in u_upload_mgr. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Capture texturestage states in pixel stateblocksAxel Davy2016-12-201-1/+4
| | | | | | pixels stateblocks need to capture these. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Add missing changed states to pixel stateblocksAxel Davy2016-12-201-1/+4
| | | | | | Some states were not properly recorded in pixel stateblocks. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Add some debug info in stateblocksAxel Davy2016-12-201-0/+5
| | | | | | This is useful to check what is exactly recorded. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Remove useless check in surface9 ctorAxel Davy2016-12-201-4/+0
| | | | | | | Textures already have the check in BaseTexture9. Non-Textures cannot be in the MANAGED Pool. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Fix bad light initialization in stateblocksAxel Davy2016-12-201-2/+2
| | | | | | src was initialized instead of dst. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Remove unused ff.changed.groupAxel Davy2016-12-202-6/+0
| | | | | | It was unused. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Fix ps multisample checkAxel Davy2016-12-201-1/+1
| | | | | | | We want to use centroid for nonmaskable multisampling as well. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Fix useless swapchain init checksAxel Davy2016-12-201-14/+7
| | | | | | | In NineDevice9_SetDefaultState we can assume the implicit swapchain is properly initialized. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Don't update stream_usage_mask in sw pathAxel Davy2016-12-201-2/+0
| | | | | | The variable is used only in the hw path. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Remove useless call to nine_update_stateAxel Davy2016-12-201-1/+0
| | | | | | The call was not needed. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Add validation to SetSamplerStateAxel Davy2016-12-205-3/+48
| | | | | | Check value validity and mimick Win behaviour. Signed-off-by: Axel Davy <[email protected]>
* st/nine: Improve doc of D3DPMISCCAPS_POSTBLENDSRGBCONVERTAxel Davy2016-12-201-1/+1
| | | | | | | | | | The cap should be advertised for d3d10 able cards, but only for Ex contexts. Unfortunately at this point Mesa has no way to know if Ex is used or not (the info is got later). Signed-off-by: Axel Davy <[email protected]>
* gallium-docs: Add documentation for when using several contextsAxel Davy2016-12-201-0/+23
| | | | | | | | Add documentation to explicit what can be expected and what is allowed when using several contexts. Signed-off-by: Axel Davy <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
* gallium-docs: Add documentation for threading requirementsAxel Davy2016-12-201-0/+10
| | | | | | | | Add documentation for the requirements related to threading for screens and contexts. Signed-off-by: Axel Davy <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
* Revert "cso: don't release sampler states that are bound"Michel Dänzer2016-12-191-3/+1
| | | | | | | This reverts commit 6dc96de303290e8d1fc294da478c4f370be98dea. No longer necessary with the previous change. Reviewed-by: Nicolai Hähnle <[email protected]>
* cso: Make sanitize_hash safe for samplersMichel Dänzer2016-12-191-1/+43
| | | | | | | | Remove currently bound sampler states from the hash table before pruning entries from the hash table, so they cannot accidentally be deleted by the pruning. Reviewed-by: Nicolai Hähnle <[email protected]>
* cso: Store hash key in struct cso_samplerMichel Dänzer2016-12-192-0/+2
| | | | | | Preparation for following changes, no functional change intended. Reviewed-by: Nicolai Hähnle <[email protected]>
* cso: Optimize cso_save/restore_fragment_samplersMichel Dänzer2016-12-191-4/+17
| | | | | | | | | Only copy/memset the pointers that actually need to be. v2: * Cast info->nr_samplers to int for calculating delta (Nicolai) Reviewed-by: Nicolai Hähnle <[email protected]>
* cso: Store pointers to struct cso_sampler in struct sampler_infoMichel Dänzer2016-12-191-15/+18
| | | | | | Preparation for following changes, no functional change intended. Reviewed-by: Nicolai Hähnle <[email protected]>
* cso: Don't restore nr_samplers in cso_restore_fragment_samplersMichel Dänzer2016-12-191-1/+0
| | | | | | | | | | If info->nr_samplers > ctx->nr_fragment_samplers_saved, the assignment would prevent cso_single_sampler_done from unbinding the no longer used samplers from the driver, which could result in use-after-free. This is probably unlikely to happen in practice though. Cc: "12.0 13.0" <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
* freedreno/a5xx: border color supportRob Clark2016-12-181-3/+160
| | | | | | | Not 100% sure it works if you have border color in VS.. but it might be right. Signed-off-by: Rob Clark <[email protected]>
* freedreno/a5xx: use MRT0 to import linear zsRob Clark2016-12-181-5/+20
| | | | | | | | | | | A bit of a hack, but we need to do this until we can do tiled zs in sysmem (and associated tile/until blits for transfer_map). Fixes xonotic and glmark2 "refract", when reorder wasn't enabled. (reorder would paper over the issue by avoiding the extra round- trip to system memory and back to gmem. Signed-off-by: Rob Clark <[email protected]>
* freedreno: fdN_gmem_restore_format() is not gen specificRob Clark2016-12-188-50/+25
| | | | | | | | | | Refactor out into a common helper, since this is the same across generations when we need equiv z/s gmem restore format. Next patch needs this in a5xx, rather than creating yet another helper push this into core. Signed-off-by: Rob Clark <[email protected]>
* freedreno/a5xx: cargo-cult end-batch sequence more faithfullyRob Clark2016-12-184-4/+39
| | | | | | | Fixes some issues at least with GMEM bypass mode, where we'd sometimes end up with some FS quads not hitting memory. Signed-off-by: Rob Clark <[email protected]>
* freedreno/a5xx: misc fixRob Clark2016-12-181-1/+1
| | | | Signed-off-by: Rob Clark <[email protected]>
* freedreno/a5xx: fix (at least some) vtx formatsRob Clark2016-12-181-1/+1
| | | | | | | | | Swap/component-order doesn't seem to be quite what that is. At least blob was always setting it to XYZW ('11') but we weren't. Causing problems w/ formats like sint16.. Hard-coding this instead at least seems to get glamor working. Signed-off-by: Rob Clark <[email protected]>
* freedreno/a5xx: more formatsRob Clark2016-12-181-25/+25
| | | | Signed-off-by: Rob Clark <[email protected]>
* freedreno/a5xx: fixup capsRob Clark2016-12-182-6/+11
| | | | | | | | | | Might not be 100% accurate, mostly just copy from a4xx to get started. We are defn lying about occlusion query at this point (not implemented yet) but need it to expose anything higher than gl1.4 (glamor needs gl2.1) Signed-off-by: Rob Clark <[email protected]>
* freedreno/a5xx: fix random faults on first sysmem drawRob Clark2016-12-181-0/+3
| | | | | | | | Not sure what this event is, but blob writes it.. and it seems to solve random write faults at mystery address that would sometimes happen on first BYPASS draw. Signed-off-by: Rob Clark <[email protected]>
* freedreno: update generated headersRob Clark2016-12-186-17/+80
| | | | Signed-off-by: Rob Clark <[email protected]>
* freedreno/a5xx: fix stride/size for mem->gmem blitsRob Clark2016-12-181-5/+7
| | | | | | <brownpaperbag>these should be the in-GMEM dimensions</brownpaperbag> Signed-off-by: Rob Clark <[email protected]>
* swr: Implement fence attached work queues for deferred deletion.Bruce Cherniak2016-12-169-54/+255
| | | | | | | Work can now be added to fences and triggered by fence completion. This allows for deferred resource deletion, and other asynchronous tasks. Reviewed-by: George Kyriazis <[email protected]>
* treewide: s/comparitor/comparator/Ilia Mirkin2016-12-123-3/+3
| | | | | | | | | | git grep -l comparitor | xargs sed -i 's/comparitor/comparator/g' Just happened to notice this in a patch that was sent and included one of the tokens in question. Signed-off-by: Ilia Mirkin <[email protected]> Acked-by: Nicolai Hähnle <[email protected]>
* swr: [rasterizer core/memory] StoreTile: AVX512 progressTim Rowley2016-12-122-222/+138
| | | | | | Fixes to 128-bit formats. Reviwed-by: Bruce Cherniak <[email protected]>
* radeonsi: shrink the GSVS ring to account for the reduced item sizesNicolai Hähnle2016-12-121-1/+1
| | | | Reviewed-by: Marek Olšák <[email protected]>
* radeonsi: shrink each vertex stream to the actually required sizeNicolai Hähnle2016-12-122-25/+40
| | | | Reviewed-by: Marek Olšák <[email protected]>