summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50
Commit message (Collapse)AuthorAgeFilesLines
* nouveau: introduce nouveau_miptree common to all nouveau pipe driversBen Skeggs2009-08-316-30/+29
| | | | | | | | The winsys once again has to know about textures it seems, so we need a common representation between all our pipe drivers to store some information the winsys will need. Only the nv50 driver has been fixed so far.
* nv50: set provoking vertex stateChristoph Bumiller2009-08-291-0/+2
|
* nv50: use VTX_ATTR_nF for constant vtxeltsChristoph Bumiller2009-08-203-1/+75
|
* nv50: set vertex buffer limitsChristoph Bumiller2009-08-201-2/+11
|
* nv50: modify vbo format to hw translation, add BGRA swizzleChristoph Bumiller2009-08-201-39/+65
|
* nv50: remove a few cases of directly casting struct pipe_contextMaarten Maathuis2009-08-172-3/+3
|
* nv50: borrow some flushing code from the ddxMaarten Maathuis2009-08-171-3/+11
| | | | | - This fixes neverball corruption. - I'm unsure about what we're actually flushing here.
* nv50: whitespace fixes and deobfuscationMaarten Maathuis2009-08-179-69/+85
|
* nv50: fix stencil stateChristoph Bumiller2009-08-171-6/+6
| | | | | | | It's the front stencil methods that have contiguous offsets, not the back ones. Unfortunately the names in the header still have FRONT/BACK reversed, so I'm using hex values until it gets updated.
* nv50: avoid a NULL-ptr dereference when the pipe context changesMaarten Maathuis2009-08-151-1/+26
| | | | - We cannot assume all state objects are present when the pipe context changes.
* nv50: align registers used with TEX to 4Christoph Bumiller2009-08-151-1/+2
| | | | | | | | The TEX instruction is passed the first index of a contiguous range of 4 TEMP registers that contain coordinates / LOD and, after execution, the texel values. It seems the first index is required to be a multiple of 4 on some (older ?) cards.
* nv50: fix mipmap offsets and tilingChristoph Bumiller2009-08-143-17/+34
| | | | | | The hardware expects a texture's tile mode to change with the mipmap level. Also, only multiply by block size once to obtain size.
* nv50: make sure we don't re-emit outdated scissor stateChristoph Bumiller2009-08-141-4/+4
| | | | | Since we don't turn off scissors, we need to update the stateobj when the framebuffer size changes.
* nv50: make use of the y-origin switchChristoph Bumiller2009-08-142-25/+16
| | | | | Now that we know how to make the hardware have y-coordinate origin top, we can get rid of all the inversion introduced earlier.
* nv50: fix typo in REALLOC's 2nd argument in ctor_immdChristoph Bumiller2009-08-141-1/+1
|
* nv50: support non-blocking query_result()Ben Skeggs2009-07-291-5/+5
|
* nv50: correct zeta formatsChristoph Bumiller2009-07-293-9/+20
| | | | | | What was Z24S8 before is actually S8Z24, and what we had for Z16 is actually X8Z24. Now, we also have the REAL Z24S8 and I added Z32_FLOAT as well; most of the formats need different tile_flags.
* nv50: use new 2D surface format namesChristoph Bumiller2009-07-291-4/+4
|
* nv50: support more vtxelt formatsChristoph Bumiller2009-07-291-24/+56
| | | | | NOTE: we must not try to emit buffer relocations when vtxbuf_nr is 0 but vtxelt_nr is not
* nv50: should use uint32_t ptr in draw_elements_inline_u32Christoph Bumiller2009-07-291-1/+1
|
* nv50: TIC/TSC fixes and additionsChristoph Bumiller2009-07-293-34/+60
| | | | | Red and blue were interchanged in TIC. Add border color and some formats.
* nv50: fix sx/dx typo in transfer_rect_m2mfChristoph Bumiller2009-07-291-2/+2
|
* nv50: fix viewport transformChristoph Bumiller2009-07-291-11/+20
| | | | | | | The translation also needs to be inverted, and in bypass mode the state tracker incorrectly assumes that Y = 0 = TOP, so we need inversion there to; NDC clipping has to be deactivated explicitly.
* nv50: use correct scissor regChristoph Bumiller2009-07-292-7/+20
|
* gallium: simplify tgsi_full_immediate structKeith Whitwell2009-07-221-4/+4
| | | | | | | | | | | | | Remove the need to have a pointer in this struct by just including the immediate data inline. Having a pointer in the struct introduces complications like needing to alloc/free the data pointed to, uncertainty about who owns the data, etc. There doesn't seem to be a need for it, and it is unlikely to make much difference plus or minus to performance. Added some asserts as we now will trip up on immediates with more than four elements. There were actually already quite a few such asserts, but the >4 case could be used in the future to specify indexable immediate ranges, such as lookup tables.
* gallium: Define PIPE_CAP_BLEND_EQUATION_SEPARATE, remove extension from ↵Patrice Mandin2009-07-141-0/+2
| | | | default extension list
* nouveau: return some supported zeta formatsBen Skeggs2009-07-014-1/+10
|
* nouveau: deal with PIPE_CAP_TGSI_CONT_SUPPORTEDBen Skeggs2009-07-011-0/+2
|
* nv50: fix multi-texturingBen Skeggs2009-06-063-5/+16
|
* nv50: support non-normalized texture coordsBen Skeggs2009-06-064-8/+18
|
* nv50: use larger tile sizesBen Skeggs2009-06-052-4/+11
|
* nv50: use nouveau_bo for query buffersBen Skeggs2009-06-051-13/+12
|
* nv50: create textures with nouveau_bo, for flexibility with tiling laterBen Skeggs2009-06-056-41/+46
|
* nouveau: fix build with libdrm_nouveau 0.6Ben Skeggs2009-06-053-9/+9
|
* nouveau: remove unneeded code from ws, use pipe_buffer_ instead of ws->Ben Skeggs2009-06-053-10/+14
|
* nouveau: move channel creation into pipe driversBen Skeggs2009-06-059-51/+45
|
* nouveau: call notifier/grobj etc funcs directlyBen Skeggs2009-06-052-23/+34
| | | | | libdrm_nouveau is linked with the winsys, there's no good reason to do all this through yet another layer.
* nouveau: add pipe_buffer/fence code to pipe drivers, move nv50 overBen Skeggs2009-06-056-60/+41
|
* nouveau: pass nouveau_bo instead of pipe_buffer to so_ callsBen Skeggs2009-06-058-51/+72
|
* nouveau: call nouveau_pushbuf directly rather than going through nvwsBen Skeggs2009-06-051-1/+1
|
* nv50: some mipmapping fixesBen Skeggs2009-05-284-22/+31
|
* nv50: negate sources directly where supportedChristoph Bumiller2009-05-281-42/+68
|
* nv50: introduce emit_cvt and use itChristoph Bumiller2009-05-281-40/+48
| | | | | This makes some code cleaner, and we can now easily do CEIL and TRUNC.
* nv50: fix TXPChristoph Bumiller2009-05-281-23/+112
| | | | | | | | For TXP we need to divide texture coords by their w component, or use the coords' 1/w in the perspective interpolation instruction. This also tries to support 1D, 3D and CUBE textures, and lets the instruction only load the components that are used.
* nv50: use multiple constant buffersChristoph Bumiller2009-05-284-48/+105
| | | | | | | Use different buffers for immds, FP params, and VP params. One has to map constant buffer indices in shader code to buffers defined via CB_DEF. In principle, we could use more buffers so we'd have to change the shader code less frequently.
* nv50: don't look for unfreed temps in free_nv50_pcChristoph Bumiller2009-05-281-8/+0
| | | | | Since we stopped using alloc_temp to get hw indices for FP attrs there shouldn't be any non-deallocated temps left.
* nv50: release hw TEMPs earlyChristoph Bumiller2009-05-281-0/+19
| | | | | Since we know when we don't use a TEMP or FP ATTR register anymore, we can release their hw resources early.
* nv50: allow immediates for MOV, ADD and MULChristoph Bumiller2009-05-281-5/+22
| | | | | | Immediates are inlined now where possible, so we need to set pc->allow32 to FALSE in LIT where we have the conditional MOV, since immediates swallow the predicate bits.
* nv50: enable half insns for MOV and MULChristoph Bumiller2009-05-281-7/+12
|
* nv50: make sure half-long insns are pairedChristoph Bumiller2009-05-281-0/+72
| | | | | | | I chose to just convert unpaired 32 bit length instructions after parsing all instructions, although it might be possible to determine beforehand whether there would be any lone ones, and then even do some swapping to bring them together ...