summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915tex
AgeCommit message (Collapse)Author
2007-09-20Uniquely validate the batchbuffer-referenced buffers.Eric Anholt
Otherwise, for multiple references by the batchbuffer, the kernel would see the buffer already on the unfenced list and wait for it to leave the list before continuing, leading to hanging and eventual -EBUSY.
2007-09-20Merge branch 'master' into i915-unificationEric Anholt
Conflicts: src/mesa/drivers/dri/common/dri_drmpool.c src/mesa/drivers/dri/i915tex/i915_vtbl.c src/mesa/drivers/dri/i915tex/intel_batchbuffer.c src/mesa/drivers/dri/i915tex/intel_context.c
2007-09-19Replace i915tex batchbuffer printout with a pretty-printed version.Eric Anholt
2007-09-19Enable building the debug (env INTEL_DEBUG=list) code by default.Eric Anholt
2007-09-12Remove unused plane->pipe mapping fields from SAREA private.Jesse Barnes
2007-09-11Fix-up #includes to remove some -I options.Brian
eg: #include "shader/program.h" and remove -I$(TOP)/src/mesa/program
2007-09-11Update depth test state when binding new framebuffer objectBrian
2007-09-11fix commentBrian
2007-09-11intel: disentangle planes & pipesJesse Barnes
This is the Mesa portion of the pipe & plane disambiguation. Mesa needs to use the new assumptions about plane vs. pipe mappings and should use the new SAREA field names to avoid confusion.
2007-08-28Add register defines for hw binningKeith Packard
2007-08-16Convert TTM code to require the server provide buffers for front/back/depth.Eric Anholt
This removes the use of fake buffers from the driver, such that it could probably be removed from the interface. It also should assist in proper synchronization of access.
2007-08-16Move i915_disasm to later so we can use the hardware offset.Eric Anholt
2007-08-16Add decode for XY_COLOR_BLT and XY_SRC_COPY_BLT.Eric Anholt
2007-08-16i915tex: Unreference texture buffers on context destruction.Michel Dänzer
Not doing this could cause the buffers to leak under some circumstances.
2007-08-13i915tex: Make sure pitch is aligned properly for render-to-texture.Michel Dänzer
Just always align texture pitch to multiples of 64 bytes for now, pending a more sophisticated scheme to do it only when really necessary.
2007-08-11Make it easier to compare against the pipe driver debug code.Keith Whitwell
2007-08-11Improve debugging further.Keith Whitwell
Pull apart some key packets into individual fields and print sanely.
2007-08-11Better debuggingKeith Whitwell
2007-08-10i965/i915tex: applying right alignment to compressed texture,Xiang, Haihao
which make small textures(4x4,2x2,1x1) work well.
2007-08-02move code to prevent NULL ptr dereference (bug 11810)Brian
2007-07-31Don't initialize extensions we can't support when !ttm.Eric Anholt
2007-07-29fix range reduction for sin/cos in i915tex (#11609)Roland Scheidegger
2007-07-29fix fallback crashes when driver can't handle frag prog for i915 driver too ↵Roland Scheidegger
(untested)
2007-07-29Fix crashes when the frag prog can't be handled in hardware (#11131)Roland Scheidegger
Must not change to/from swrast after Render.Start or bad things will happen. (Driver will still somewhat incorrectly report an implementation error, and apps can't really figure out if a prog is natively supported as validation is later - could try doing it earlier to give some hint at least, even though native status may still change later due to fog etc.)
2007-07-25Add notes about bufmgr initialization failures.Eric Anholt
2007-07-19fix mesa fb bindingRoland Scheidegger
Make sure that we bind the right buffer (draw or read) when rebinding the window framebuffer (the api doesn't allow binding different draw and read buffers at the same time, but the default window framebuffer is basically 2 fb objects, one for read, one for write, which can be different). Pass both of these two down the driver api (no driver uses this right now).
2007-07-19increase MAX_RELOCS so never run out before batch buffer is full (fixes ↵Roland Scheidegger
xdemos/shape)
2007-07-16fix segfault with i915 drivers in swrast drawpixels path when resizing windowsRoland Scheidegger
2007-07-10i915tex: Better procedure for dropping batchbuffer on virtual resolution change.Michel Dänzer
The previous procedure would often result in a GPU lockup.
2007-07-10i915tex: Only wait for vblank when really necessary.Michel Dänzer
This avoids superfluous waits for vblank timing out under some circumstances.
2007-07-06Add case for GL_QUADS in i915_reduced_primitive_state().Brian
The t_dd_tritemp.h code can emit GL_QUADS primitives. We need to catch that case to determine if polygon stipple should be enabled. Fixes bug reported by Carlos Diógenes on 4 July 2007.
2007-07-05Fix copy'n'pasteo that broke display lists.Eric Anholt
2007-07-05Merge branch 'i915-unification' of ↵Eric Anholt
git+ssh://people.freedesktop.org/~anholt/mesa into i915-unification
2007-06-21Merge branch 'origin' into i915-unificationEric Anholt
2007-06-21Reset saved state for disasm when we've lost the context.Eric Anholt
2007-06-21Add decoding of inline primitives in debug output.Eric Anholt
2007-06-21Add missing i915_disasm.h header and adjust copyright formatting on the .cEric Anholt
2007-06-21Another round of fixing attribute interpolation for glDraw/CopyPixels.Brian
Need to turn off FRAG_BIT_COL0 in swrast->_ActiveAttribMask when doing glRead/CopyPixels to prevent the user's colors from getting overwritten when a fragment program is active. This was happening in the DRI drivers when MaintainTexEnv program was used (the texenv fragment program was enabled when _swrast_DrawPixels was called). This still isn't an ideal solution, but fixes things for now.
2007-06-20Effectively disable _TexEnvProgram before calling _swrast_DrawPixels().Brian
It's OK to use _TexEnvProgram regardless of the texture state, but if fog is also enabled, the fragment program is lacking the actual fog computation so fogging doesn't appear. Fixing this might involve a new _MaintainFogProgram field and related code. For now, just disable the _TexEnvProgram and let swrast handle everything.
2007-06-18Test for TTM presence initially rather than test for lack of classic aperture.Eric Anholt
2007-06-15Replace intel_dump_batchbuffer with a more informational version.Eric Anholt
2007-06-15Correct a mis-count in a LOAD_STATE_IMMEDIATE_1 length argument.Eric Anholt
2007-06-15i915tex: Missing piece of SetTexOffset hook implementation for I830 generation.Michel Dänzer
2007-06-11Replace texobj->Complete with texobj->_Complete since it's a derived field.Brian
2007-06-05Add PCI IDs for the G33, Q33, and Q35 chipsets.Wang Zhenyu
2007-06-05i915tex: Better attempt to release miptree when overriding texture image.Michel Dänzer
The previous approach could lead to crashes in FBO code that dereferences the miptree struct pointer unconditionally.
2007-05-31Add buffer manager destroy function.Eric Anholt
2007-05-31Remove some stale comments.Eric Anholt
2007-05-31i915tex: Add support for 945GMEWang Zhenyu
2007-05-24Replace the flags/hint arguments to bo_alloc{,_static} with a location mask.Eric Anholt
Now, allocations only take locations, rather than a variety of unused flags. The only interesting flag before was the no_move/no_evict pair for scanout and similar buffers, which the DRI drivers don't use. That will be readded when we get to using this code for display buffer allocation, by adding a pin/unpin call (dynamic pinning/unpinning may be useful for VT switching and root window resizing). This commit changes one instance of DRM_BO_FLAG_MEM_LOCAL with DRM_BO_FLAG_MEM_TT, which appeared to have been unintentional.