Commit Graph

10484 Commits

Author SHA1 Message Date
Stephane Marchesin fecb3ce586 Use write posting in the kickoff function too. 2007-12-07 02:31:40 +01:00
Ben Skeggs 2a2756a019 nv40: be more flexible with render target setup 2007-11-25 12:39:32 +11:00
Ben Skeggs b8c5419faf nv40: remove unused stuff 2007-11-25 12:06:42 +11:00
Ben Skeggs 25acd4eba0 nv40: point sprites 2007-11-25 12:02:12 +11:00
Ben Skeggs 8b1c8f5e75 nv40: fp arbitrary swizzling/negation
Pretty bad implementation, goal was to get glBitmap working.
2007-11-25 11:25:32 +11:00
Ben Skeggs 558f3abb49 nv40: support for keeping multiple vtxprogs on the hw at the same time. 2007-11-23 18:54:19 +11:00
Ben Skeggs dd1500b8b4 nouveau: wait for sync after m2mf also, to be thourough.
These will all go away at some point I promise, want to rule out sync issues
while I bash nv40 into shape.
2007-11-21 19:21:34 +11:00
Ben Skeggs ff7edad077 nv40: Better teximage layout, probably not 100% correct still.
Gallium represents image layout by saying that each mipmap level has a number
of "face" images within it.  However, nv40 represents them as "faces" that
have a number of mipmap levels.  I'm not sure if the gallium representation
allows this, but I've made an attempt to match it as closely as possible.

CUBE/3D textures with mipmaps are probably broken, but untested currently.
2007-11-21 19:20:38 +11:00
Ben Skeggs af1a388939 Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1 2007-11-21 15:38:28 +11:00
Brian 5a6017d496 add PIPE_FORMAT_Z24_S8 support to softpipe patsh 2007-11-20 08:36:06 -07:00
Brian 0191570f02 initial support for PIPE_FORMAT_Z24_S8 2007-11-20 08:30:10 -07:00
Ben Skeggs 0655cdcf48 nv40: force reupload of all consts on vtxprog change 2007-11-20 22:34:55 +11:00
Ben Skeggs 0d0349faff nouveau: temporary workaround for dodgy buffer code 2007-11-20 22:09:56 +11:00
Ben Skeggs b9b5f4b3c1 nv40: "rect" textures, anisotropic filtering 2007-11-20 21:13:33 +11:00
Ben Skeggs 30837fd24f nv40: fix a couple of typos 2007-11-20 20:56:47 +11:00
Ben Skeggs f01e305e98 nv40: use native Z24_S8 format for zeta buffer 2007-11-20 19:10:58 +11:00
Ben Skeggs 85d626508a Add support for Z24_S8 to GL state tracker. 2007-11-20 19:09:47 +11:00
Ben Skeggs 04fcee96b1 nv40: track pipe const id 2007-11-20 19:08:33 +11:00
Ben Skeggs b4c813313a nv40: remove use of temps for KILP, implement KIL 2007-11-20 15:34:26 +11:00
Ben Skeggs 060127af38 nouveau: update to latest header 2007-11-20 13:22:11 +11:00
Brian c4f9fbb57f optimize earlyz_quad(), add comments, remove unneeded #includes 2007-11-19 18:16:07 -07:00
Brian 0204cbb4f1 optimize linear_interpolation(), perspective_interpolation() functions 2007-11-19 18:15:21 -07:00
Michal Krol 7f718f0476 Implement early depth test.
Early depth test is enabled when depth test is enabled and
alpha test is disabled and fragment shader does not write
depth.
The early-z is implemented by moving the depth test stage
just before the fragment shader stage and prepending it
with an earlyz stage, introduced with this commit.
The earlyz stage prepares the quad->outputs.depth for
the following depth test stage by interpolating Z position,
just as the fragment shader would do.
2007-11-18 18:20:20 +00:00
Ben Skeggs c7c6253169 nouveau: m2mf fallback path for region copies. 2007-11-18 23:08:33 +11:00
Ben Skeggs f940603037 nv40: fix thinko == fix 3d textures 2007-11-18 22:12:50 +11:00
Ben Skeggs a1d622190f nv40: support TXP again 2007-11-18 21:47:18 +11:00
Ben Skeggs 3ab26c864c nv40: some very rough guesses for get_paramf() 2007-11-18 17:59:45 +11:00
Ben Skeggs bc449c28c6 nouveau: oops, when'd that disappear.. 2007-11-18 17:49:30 +11:00
Ben Skeggs 2f33b5b56e nouveau: Very rough cut at gallium winsys + nv40 pipe driver. 2007-11-18 17:34:06 +11:00
José Fonseca ca7f68a7cf Fix typo 2007-11-17 15:39:36 +00:00
José Fonseca dec60d33b2 Proper fence reference counting. 2007-11-17 15:39:36 +00:00
Brian 34a00276c7 more convenient debug code 2007-11-16 17:13:26 -07:00
Brian aa880bdfa0 Reimplement glRasterPos using the private 'draw' module. 2007-11-16 17:13:01 -07:00
Brian 6a1154bab0 adjustments so st_feedback_draw_vbo() can be used for glRasterPos 2007-11-16 17:12:22 -07:00
Brian 95f066fc54 note problem with fragment coord Y orientation 2007-11-16 10:39:08 -07:00
Brian f361edae5d added a clip-bypass flag to rasterizer state 2007-11-16 09:31:25 -07:00
José Fonseca 90dd0cb822 Include fences in the i915simple winsys interface. 2007-11-15 17:07:50 +00:00
Brian 193c85ec7a comments, assertions 2007-11-09 07:55:08 -07:00
Brian 50a56cd755 minor simplifcation in vertex_fetch() 2007-11-09 07:55:08 -07:00
Alan Hourihane 33cf20bb45 remove duplicate init func 2007-11-09 09:21:40 +00:00
Brian 6446986321 Reorganize user-space vertex fields in draw_context into 'user' group.
This sub-struct collects the incoming user-provided data/pointers in one place.
Ex: draw->mapped_vbuffer becomes draw->user.vbuffer, etc.
2007-11-08 17:07:12 -07:00
Brian 990fe4c0bf remove unneeded #includes, added assertion in draw_compute_vertex_size() 2007-11-08 16:55:29 -07:00
Brian ec0c5e59c2 Remove unneeded header, draw_prim.h 2007-11-08 16:37:25 -07:00
Brian 1574611faf Fix minor logic error in get_queued_prim() which caused flushing when there was still room in the prim queue. 2007-11-08 16:36:00 -07:00
Brian 48863cdd0a new comments 2007-11-08 16:32:24 -07:00
Brian 03f4a487dd remove unneeded #includes 2007-11-08 16:26:55 -07:00
Brian 03484d0aae comments, remove unneeded #includes 2007-11-08 16:25:17 -07:00
Brian f66fed57e6 For TGSI_TEXTURE_2D/RECT, need to provide 3 coords (STP) in case shadow compare mode is enabled. 2007-11-08 15:02:42 -07:00
Brian 3d8c05f732 Implement shadow comparisons. 2007-11-08 15:01:13 -07:00
Brian a7be1c5ac2 use pipe_surface_reference() in sp_tile_cache_set_surface() 2007-11-08 15:00:11 -07:00