| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Using drm_i915_sarea_t instead of struct drm_i915_sarea seems to be
a common standard now, therefore fix it also in intel_context
structure. Additionally this silences a compiler warning:
intel_swapbuffers.c: In function `intelFixupVblank':
intel_swapbuffers.c:48: warning: initialization from incompatible pointer type
Signed-off-by: Tobias Doerffel <[email protected]>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
This branch introduces new FRAG_ATTRIB_FACE and FRAG_ATTRIB_PNTC fragment
program inputs for GLSL gl_FrontFacing and gl_PointCoord. Before, these
attributes were packed with the FOG attribute. That made things
complicated elsewhere.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, the FOGC attribute contained the fragment fog coord, front/back-
face flag and the gl_PointCoord.xy values. Now each of those things are
separate fragment program attributes. This simplifies quite a few things in
Mesa and gallium.
Need to test i965 driver and fix up point coord handling in the gallium/draw
module...
|
| |
| |
| |
| | |
Fixes cube mapping since the scalar changes.
|
| |
| |
| |
| |
| |
| | |
This matches brw_wm_pass*.c behavior, and fixes the norsetto shadow demo.
Bug #19489
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
I'll be using this in merging brw_wm_emit.c and brw_wm_glsl.c
|
| |
| |
| |
| |
| | |
This is preparation for merging of brw_wm_glsl.c and
brw_wm_emit.c, and glsl.c doesn't swizzle channel results around.
|
| |
| |
| |
| | |
This doesn't fix the glean testcase, but I guess it provides hope.
|
| | |
|
| |
| |
| |
| | |
No performance difference proven at 95% confidence with my GLSL demo (n=10).
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Pauli Nieminen <[email protected]>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This saves mapping the index buffer to get a bounds on the indices that
drivers just drop on the floor in the VBO case (cache win), saves a bonus
walk of the indices in the CheckArrayBounds case, and other miscellaneous
validation. On intel it's a particularly a large win (50-100% in my app)
because even though we let the indices stay in both CPU and GPU caches, we
still end up waiting for the GPU to be done with the buffer before reading
from it.
Drivers that want the min/max_index fields must now check index_bounds_valid
and use vbo_get_minmax_index before using them.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Reference counting protects DRM lock call from recursive locking that would
cause hang. Code also adds optional debugging output for recursive call that
is compiled only if NDEBUG is not defined.
This code is not 100% thread safe because mesa doesn't include increment and
test atomic operation. There is built-in gcc functions but they are only
available from gcc 4.2.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
NOTE: THIS REQUIRES AN UPDATED DRM!
|
| | |
|
| | |
|
| |
| |
| |
| | |
glCopyPixels() no longer hits a software fallback when zooming, blending, etc.
|
| |
| |
| |
| | |
Also, save/restore viewport and texture state in _mesa_meta_copy_pixels()
|
| |
| |
| |
| | |
possible
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
The previous version of framebuffer blit was a quick hack. The new meta
version works pretty well.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Implement glClear() in terms of quad rendering, implement glBlitFramebuffer()
in terms of glCopyTexImage2D + textured quad, etc.
There have been several places in the drivers where we've implemented
meta rendering similar to this. This is an effort to do it in a more
portable and more efficient form.
The _mesa_meta_begin/end() functions act like glPush/PopAttrib() but are
lighter-weight. Plus, _mesa_meta_begin() resets GL state back to default
values (texturing off, identity vertex transform, etc) so the meta drawing
functions don't have to worry about it.
For now only _mesa_mesa_blit_framebuffer() and _mesa_meta_clear() are
implemented. glDrawPixels() and glCopyPixels() would be the next candidates.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
This patch can fix /progs/fp/tri-depth, tri-depth2, tri-depthwrite,
tri-depthwrite2 and point-position.
|
| |
| |
| |
| |
| |
| |
| | |
This reverts commit b8e638d4895d2d342306bb6443a455f73903ce20.
Now that the known hangs and misrendering issues are fixed, I'm ready to
start encouraging it by default again.
|
| |
| |
| |
| |
| |
| |
| | |
Otherwise, we would address beyond the end of our buffers. Fixes reliable
GPU segfault with texture_tiling=true and oglconform shadow.c.
Bug #22406.
|
| | |
|
| | |
|