summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-04-06i965/meta/hack: Prepare stencil blit for ARB_texture_stencil8stencil_hackTopi Pohjolainen2-1/+5
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-04-06causes crashTopi Pohjolainen1-1/+1
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp/gen7: Use normal pipeline support for disabling stagesTopi Pohjolainen1-59/+1
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Enable replicated clears using glsl-based programsTopi Pohjolainen1-0/+8
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Enable fast clears using glsl-based programsTopi Pohjolainen3-0/+69
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Add support for executing glsl-based clearsTopi Pohjolainen5-0/+142
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/meta: Add cache and compile support for clear programsTopi Pohjolainen3-0/+77
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/meta/clear: Refactor logic using gl-contextTopi Pohjolainen1-65/+78
Note that in case brw_fast_clear_init() fails the logic no longer sets "brw->state.dirty.mesa |= _NEW_BUFFERS". None of the fast clear setting were altered and hence there should be no need to trigger the state change here either. Nor does it call "use_rectlist(brw, false)" as "use_rectlist(brw, true)" wasn't called either. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/meta/clear: Declare input rectangle for drawing as constantTopi Pohjolainen1-1/+2
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/meta/clear: Refactor miptree clear state settingTopi Pohjolainen1-11/+18
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp/gen8: Execution supportTopi Pohjolainen4-1/+829
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp/gen6: Prepare vertex buffer setup logic for gen8Topi Pohjolainen1-8/+22
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp/gen7: Expose state setup applicable to gen8Topi Pohjolainen2-10/+46
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp/gen7: Prepare re-using for gen8Topi Pohjolainen1-2/+4
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Enable glsl-based fbo blitsTopi Pohjolainen2-0/+21
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Add support for setting samplers for glsl-based blitsTopi Pohjolainen2-0/+16
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Add support for setting up surfaces for glsl-based blitsTopi Pohjolainen3-0/+41
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Add support for loading vertices for glsl-based blitsTopi Pohjolainen2-0/+90
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Add plumbing for glsl-based color blitsTopi Pohjolainen2-0/+110
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp/gen7: Support for loading glsl-based fragment shadersTopi Pohjolainen4-0/+126
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Move multisample setup for parameter type to handleTopi Pohjolainen3-8/+13
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Move vertex uploading for parameter type to handleTopi Pohjolainen3-11/+8
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp/gen7: Move surface setup for the parameter type to handleTopi Pohjolainen2-24/+34
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp/gen6: Move surface setup for the parameter type to handleTopi Pohjolainen2-21/+34
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Move sampler setup for the parameter type to handleTopi Pohjolainen3-19/+27
Also move the gen >= 7 specific logic into gen6_blorp.ccp, this will help to avoid more duplication when corresponding logic for glsl-based programs is added. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Move push const setup for the parameter type to handleTopi Pohjolainen6-17/+28
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Use virtual function for wm/ps configurationTopi Pohjolainen5-29/+57
instead of resolving the program offset and data. Different flavours of blorp programs (blit, clear, hiz) each have its own parameter type. The decision making on how state is configured will be moved for the parameter type to make instead of branching explicitly in the main body of batch submission (gen6/7_blorp_exec()). This will be exploited even further in the subsequent patches when one more program type is added - the one representing programs compiled from real glsl-sources. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Prepare drawing rectangle for flipped coordinatesTopi Pohjolainen1-2/+2
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Add support for layered renderingTopi Pohjolainen4-5/+8
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Allow blend state to be set for multiple render targetsTopi Pohjolainen3-19/+16
Original blorp writes only one buffer per shader invocation. Once the launch mechanism is shared with glsl-based programs there will be need for supporting multiple render targets. Also drop the always constant color write disable settings. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Remove unused argumentsTopi Pohjolainen3-21/+12
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/gen7/blorp: Remove unused argumentsTopi Pohjolainen1-47/+28
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Remove unnecessary check if program is in useTopi Pohjolainen1-1/+1
If there is now wm program, the given offset is always zero anyway. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Use program data to determine if a program is presentTopi Pohjolainen1-1/+1
There won't be any data unless a program is used. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp/gen7: Emit SBE before SFTopi Pohjolainen1-12/+13
Normal upload path emit SBE before SF. Emitting them any reverse order seems to work for blorp but it will hang the cpu when regular glsl-based programs are launched. Having them in the same order for blorp (as normally) works for blorp also. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Allow caller to provide sampler settingsTopi Pohjolainen3-8/+14
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Refactor vertex buffer state setupTopi Pohjolainen1-26/+34
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/blorp: Remove constant parameterTopi Pohjolainen3-20/+0
This was still needed when we had support for blorp clears but now this is fixed to nop. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/meta: Add helper for looking up blit programsTopi Pohjolainen2-0/+150
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30meta: Provide read access to blit shadersTopi Pohjolainen2-10/+12
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/gen8: Expose surface state setup logicTopi Pohjolainen2-18/+23
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/gen8: Expose state base address setupTopi Pohjolainen2-2/+5
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/ps/gen8: Refactor state uploadingTopi Pohjolainen2-27/+59
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/ps/gen7: Refactor state uploadingTopi Pohjolainen2-21/+46
Now the uploading depends only on the input parameters instead of consulting the current gl-state. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965/wm/gen6: Refactor push constant uploadingTopi Pohjolainen2-10/+25
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965: Refactor and expose brw_upload_binding_table()Topi Pohjolainen2-7/+21
Read and write parts of the state stage are also split into explicit arguments allowing future patches to use constant program data. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965: Expose and refactor brw_update_renderbuffer_surfaces()Topi Pohjolainen2-21/+35
Note that brw_update_renderbuffer_surfaces() already had a helper variable which was used in parallel to direct access of the current draw buffer of the context. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30i965: Refactor rb surface setup to allow caller to store offsetsTopi Pohjolainen5-45/+46
Notice that in gen7_wm_surface_state.c there is also indentation change in the surrounding code removing tabs. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2015-03-30radeonsi: Cache LLVMTargetMachineRef in context instead of in screenMichel Dänzer6-30/+41
Fixes a crash in genymotion with several threads compiling shaders concurrently. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89746 Cc: 10.5 <mesa-stable@lists.freedesktop.org> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-03-30glsl: fix unreachable(!"") to unreachable("")Tapani Pälli1-1/+1
Correct error with commit 151fb1e where assert was renamed to unreachable without removing ! from string argument. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>