summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r600
AgeCommit message (Collapse)Author
2009-10-28r600: add occlusion query supportAlex Deucher
Based on initial patch from Stephan Schmid <stephan_2303@gmx.de>. Basic idea is to dump the zpass count at the start and end of the query and subtract to get the total number of visible fragments. HW writes alternating qwords for up to 4 DBs. On the first pass, we start at buffer address + 0; on the second pass, we start at buffer address + 8 (bytes). The resulting buffer at the end of the query looks like: qw[0]: db0 start qw[1]: db0 end ... qw[6]: db3 start qw[7]: db3 end The MSB of each qword is the valid bit and the lower 63 bits are the zpass count for that DB. OQ on RV740 is disabled at the moment as it only seems to report results for half of its DBs. This needs further investigation. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-10-23mesa: Enable remap table in core.Chia-I Wu
This enables the remap table in core. driInitExtensions is adapted to use the remap table. All uses of extension_helper.h are replaced by remap_helper.h. The chicken-egg problem of the DRI drivers is also solved. It is now also possible to pass NULL extensions to driInitExtensions. It will cause driInitExtensions to map all known functions. This functionality is used by software drivers and EGL_i915. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-23r600: remove duplicate stride settingAndre Maasikas
Stride is set already in r700SetVertexFormat and there it works correctly for 0 also
2009-10-23r600: for position invariant programs reading vert_pos is not always known ↵Andre Maasikas
at this point
2009-10-23r600: remove remains of old tnl pipelineAlex Deucher
2009-10-23r600: fix render size predictionAlex Deucher
2009-10-23r600: remove old tnl pipelineAlex Deucher
2009-10-23r600: clean up context creationAlex Deucher
Make it more consistent with other radeon drivers.
2009-10-22Merge branch 'mesa_7_6_branch' of ↵Alex Deucher
git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa
2009-10-22r600: set barrier for tex inst if dst is used earlier, might overwrite it ↵Andre Maasikas
otherwise
2009-10-22r600: need to export something from PSAndre Maasikas
Also avoids empty shader for "END" - seems to be somewhat valid fp Maybe this can be done differently in the future (fake FRAG_RESULT_COLOR already in Map_Fragment_Program() or is there a way to program the chip to not hang in case of no exports.
2009-10-22r600: add beginnings of ARL instructionAndre Maasikas
2009-10-19r600: Fix size calculation for 24 bit depthRobert Noland
size was being calculated based on 3 bytes per pixel with 24 bit depth instead of 4 bytes. This caused corruption in the bottom 25% of objects. This finishes fixing the menu/text corruption in compiz/kde4. Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-19Merge branch 'mesa_7_6_branch' of ↵Alex Deucher
git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa regenerated lex.yy.c
2009-10-16mesa: lift default symlinks target into Makefile.templateBrian Paul
Driver Makefiles can still add symlink dependencies/rules if needed.
2009-10-15r600: FRAG_ATTRIB_WPOS and FRAG_ATTRIB_FOGC appear to be supported.Robert Noland
Report unsupported attributes while I'm here. Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-15r600: cleanup in r600_cs_process_relocs().Robert Noland
Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-15r600: fix tfp1 bo sizeAndre Maasikas
Setting the wrong bo size resulting in an incomplete read cache flush when reading the texture. This fixes the compiz text corruption. [agd5f: take hw pitch alignment into account]
2009-10-15r600: implement ProgramStringNotifyAndre Maasikas
need this to properly test with piglit/glean vert/fragprog tests copied mostly from r300, many thanks to osiris, nha, airlied, others...
2009-10-15r600: LIT dst.y gets value from src.xAndre Maasikas
seems I overlooked this when removing hardcoded swizzles for this one previously
2009-10-15r600: DPH adds w comp of second operand, so set first one to 1 insteadAndre Maasikas
2009-10-15r600: fixup KIL instruction a bitAndre Maasikas
- KILLGT takes 2 arguments - arb KIL has no dst register - add TODO about clause ending but currently piglit fp-kil passes and does not hang the card
2009-10-15r600: use CB_TARGET_MASK instead of CB_SHADER_MASK for setting color maskAndre Maasikas
makes blend functions work better Signed-off-by: Dave Airlie <airlied@linux.ie>
2009-10-15r600: user correct alpha blend factorAndre Maasikas
Signed-off-by: Dave Airlie <airlied@linux.ie>
2009-10-15r600: clear position enable bit when when wpos is not used by FPAndre Maasikas
Makes doom3 alot nicer..
2009-10-14r600: enable EXT_vertex_array_bgra extensionsAlex Deucher
2009-10-12r600: implement ProgramStringNotifyAndre Maasikas
need this to properly test with piglit/glean vert/fragprog tests copied mostly from r300, many thanks to osiris, nha, airlied, others...
2009-10-12r600: LIT dst.y gets value from src.xAndre Maasikas
seems I overlooked this when removing hardcoded swizzles for this one previously
2009-10-12r600: DPH adds w comp of second operand, so set first one to 1 insteadAndre Maasikas
2009-10-10Merge branch 'mesa_7_6_branch'Brian Paul
2009-10-09radeon: fix scissor regressionAlex Deucher
fixes fdo bug 24248
2009-10-09r600: fixup KIL instruction a bitAndre Maasikas
- KILLGT takes 2 arguments - arb KIL has no dst register - add TODO about clause ending but currently piglit fp-kil passes and does not hang the card
2009-10-06r600: r700PredictRenderSize can flush, so move index buffer setup after itAndre Maasikas
2009-10-05r600: update vertex program selection for draw pathAndre Maasikas
2009-10-02r600: remove support for host-based ibsAlex Deucher
no longer used now that the hw supports this natively. Also, clean up some formatting.
2009-09-29r600: use CB_TARGET_MASK instead of CB_SHADER_MASK for setting color maskAndre Maasikas
makes blend functions work better Signed-off-by: Dave Airlie <airlied@linux.ie>
2009-09-29r600: user correct alpha blend factorAndre Maasikas
Signed-off-by: Dave Airlie <airlied@linux.ie>
2009-09-29r600: clear position enable bit when when wpos is not used by FPAndre Maasikas
Makes doom3 alot nicer..
2009-09-27r600 : Enable draw_prim.Richard Li
2009-09-25radeon: Fix newlines.Michal Krol
2009-09-24Merge branch 'mesa_7_6_branch'Pauli Nieminen
2009-09-24radeon: Fix scissors for r600 KMS.Pauli Nieminen
Radeon generic scissors code had problem that some of code was using exclusive and some inclusive bottom right corner. Only r600 driver is using exclusive coordinate so changed generic code to pass inclusive coordinate and r600 driver changes BR coordinate to be exclusive.
2009-09-24r600 : fix draw_prim bug: vertex fetcher setting.Richard Li
2009-09-24r600 : disable draw_prim for now.Richard Li
2009-09-24r600: add support for CUBE textures, also TXPAndre Maasikas
seems to work here ...
2009-09-24r600: fix typo in the last commitAlex Deucher
128 gprs, 256 reg-based consts
2009-09-24r600: various cleanupsAlex Deucher
- max texture size is 8k, but mesa doesn't support that at the moment. - attempt to set shader limits to what the hw actually supports - clean up some old r300 cruft - no need to explicitly disable irqs. This is fixed in the drm now. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-09-24r600: fix some issues with LIT instructionAndre Maasikas
- MUL_LIT is ALU.Trans instruction - some Trans instructions can take 3 arguments - don't clobber dst.x, use dst.z as temp, it'll get written correct value in last insn - respect source swizzles
2009-09-24r600: fix point sizesAlex Deucher
registers takes radius
2009-09-24r600: fix polygon offsetAlex Deucher