Stéphane Marchesin
dd691032c8
i915g: Update the TODO with another idea.
2011-06-28 20:42:38 -07:00
Stéphane Marchesin
fe36bc0c41
i915g: Fix comment about sin/cos constants.
2011-06-28 12:07:11 -07:00
Stéphane Marchesin
bd1ee76442
i915g: Fix staging texture uploads a bit.
...
They still look corrupted, but at least now they don't look tiled any more.
2011-06-28 12:05:28 -07:00
Stéphane Marchesin
de33b0dd23
i915g: Add a debug_printf when we get the Abs flag.
2011-06-28 02:14:43 -07:00
Stéphane Marchesin
2e481e5fc4
i915g: Support PIPE_FORMAT_B10G10R10A2_UNORM.
2011-06-28 01:41:57 -07:00
Stéphane Marchesin
062a1e291f
i915g: Improve SIN/COS a bit.
2011-06-28 00:59:41 -07:00
Stéphane Marchesin
77896b256a
i915g: When emulating LUMINANCE8 and INTENSITY8 texutres, route alpha properly.
...
That fixes some formats in fbo-alphatest-formats.
2011-06-28 00:59:40 -07:00
Stéphane Marchesin
6f62a25448
i915g: fix shadow compare.
...
"Works" as well as i915c now.
2011-06-28 00:59:40 -07:00
Chia-I Wu
24137afb31
targets/egl-static: fix library search order
...
Use
$(MKLIB) -ldflags '-L$(TOP)/$(LIB_DIR)'
instead of
$(MKLIB) -L$(TOP)/$(LIB_DIR)
to make sure the local library path appears before system's.
2011-06-28 15:25:00 +09:00
Chia-I Wu
aa281dd392
st/egl: update fbdev backend
...
Considering fbdev as an in-kernel window system,
- opening a device opens a connection
- there is only one window: the framebuffer
- fb_var_screeninfo decides window position, size, and even color format
- there is no pixmap
Now EGL is built on top of this window system. So we should have
- the fd as the handle of the native display
- reject all but one native window: NULL
- no pixmap support
modeset support is still around, but it should be removed soon.
2011-06-28 15:07:30 +09:00
Stéphane Marchesin
a2537bbc95
i915g: Enable GL_ARB_instanced_arrays.
2011-06-27 19:27:58 -07:00
Stéphane Marchesin
8dd1e3670f
i915g: Fix a bug in facing.
...
However doesn't work because of limitations in the draw module.
2011-06-27 18:29:50 -07:00
Stéphane Marchesin
c191c87c81
i915g: Remove unused cbuf_dirty.
2011-06-27 02:08:44 -07:00
Stéphane Marchesin
e2422f77a2
i915g: Add a comment about a bug.
2011-06-27 02:06:00 -07:00
Stéphane Marchesin
ef3dac2aff
i915g: initial support for SEMANTIC_FACE.
...
Doesn't work yet, see TODO.
2011-06-27 02:06:00 -07:00
Stéphane Marchesin
4887e1c31a
i915g: update TODO.
2011-06-27 02:06:00 -07:00
Stéphane Marchesin
9d29d48bb0
i915g: Return the max result for the fake occlusion queries.
2011-06-27 02:05:59 -07:00
Stéphane Marchesin
b13865e694
i915g: Fix depth texture formats.
...
Depth compare still looks broken though.
2011-06-27 02:05:59 -07:00
Stéphane Marchesin
a8ebc5400e
i915g: Fix u_blitter comment.
2011-06-27 02:05:59 -07:00
Stéphane Marchesin
811963a7ae
i915g: Implement fake DDX/DDY.
2011-06-27 02:05:59 -07:00
Stéphane Marchesin
d2f05283d2
i915g: Fix gl_FragCoord.
2011-06-27 02:05:58 -07:00
Benjamin Franzke
992680c8b4
egl: Fix Terminate with shared gbm screens
...
NOTE: This is a candidate for the 7.11 branch.
2011-06-27 10:25:12 +02:00
Chia-I Wu
3a07d9594a
st/d3d1x: fix for st/egl native.h interface change
...
The interface was changed in 73df31eedd .
2011-06-27 12:20:52 +09:00
Chia-I Wu
a1cadf2b5c
targets/egl-static: fix building without libudev
...
Thanks to José for pointing out.
2011-06-26 18:04:42 +09:00
Chia-I Wu
450f486276
targets/egl-static: refactor drm_fd_get_screen_name
...
Add drm_fd_get_pci_id to get the PCI ID. Fix a leak with udev on error.
2011-06-26 08:17:52 +09:00
Chia-I Wu
ed47d65c7c
st/egl: fix a compile error
...
It is triggered when --with-driver=xlib is specified.
2011-06-26 08:16:59 +09:00
Chia-I Wu
56ec8e17d3
targets/gbm: attemp to fix unresolved symbols
...
Move system libraries (usually .so) out of --start-group / --end-group
pair. Add possiblly missing archives, defines, and shared libraries.
2011-06-26 07:42:04 +09:00
Marek Olšák
bc517d64da
r300g: drop support for ARGB, ABGR, XRGB, XBGR render targets
...
Blending and maybe even alpha-test don't work with those formats.
Only supporting RGBA, BGRA, RGBX, BGRX.
NOTE: This is a candidate for the 7.10 and 7.11 branches.
2011-06-25 18:34:09 +02:00
Chia-I Wu
a0ad339915
st/egl: add get_pixmap_format callback to native_display
...
And use it for EGL_MATCH_NATIVE_PIXMAP. Remove is_pixmap_supported
meanwhile.
2011-06-25 18:50:53 +09:00
Chia-I Wu
31520548b7
egl: make implementing eglChooseConfig easier
...
Add a new helper function, _eglFilterConfigArray, for drivers and hide
_eglSortConfigs.
2011-06-25 18:17:38 +09:00
Chia-I Wu
1e9f0b1736
targets/egl-static: do not use DRI_LIB_DEPS
...
It brings in libraries that are not necessarily needed.
2011-06-25 18:17:38 +09:00
Chia-I Wu
53d354b224
st/egl: add a fast path for ximage eglCopyBuffers
2011-06-25 16:23:21 +09:00
Chia-I Wu
7c4e9dcdce
st/egl: clean up eglCopyBuffers
...
Add copy_to_pixmap method to native_display and use it for
eglCopyBuffers.
2011-06-25 16:23:21 +09:00
Chia-I Wu
73df31eedd
st/egl: reorganize backend initialization
...
Remove set_event_handler() and pass the event handler with
native_get_XXX_platform(). Add init_screen() so that the pipe screen is
created later. This way we don't need to pass user_data to
create_display().
2011-06-25 16:23:20 +09:00
Stéphane Marchesin
ac8f59b23e
i915g: always upload the vs constants.
...
This fixes a crash in llvm draw.
2011-06-24 19:59:17 -07:00
Stéphane Marchesin
7b44830ef4
i915g: add fake occlusion queries.
...
Those always return 0, but at least we don't crash when exposing GL 2.0.
2011-06-24 17:28:54 -07:00
Stéphane Marchesin
3a7953910a
i915g: Don't do shader fixup if no surface is bound.
2011-06-24 16:43:58 -07:00
Stéphane Marchesin
1a69b50b3b
i915g: Fix point sprites.
2011-06-24 16:30:19 -07:00
Brian Paul
6b28b44d45
indices: fix conversion of PIPE_PRIM_POLYGON to lines
...
When the fill mode is PIPE_POLYGON_MODE_LINE we were basically
converting the polygon into triangles, then drawing the outline of all
the triangles. But we really only want to draw the lines around the
perimeter of the polygon, not the interior lines.
NOTE: This is a candidate for the 7.10 branch.
2011-06-24 16:44:43 -06:00
Alex Deucher
3acae45915
r600g: limit fs_write_all shader rebuild to eg+
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-06-24 18:27:39 -04:00
Alex Deucher
feec48114b
r600g: eg+ support for FS_COLOR0_WRITES_ALL_CBUFS
...
Evergreen+ don't support multi-writes so we need to emulate
it in the shader. Fixes the following piglit tests:
fbo-drawbuffers-fragcolor
ati_draw_buffers-arbfp-no-option
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-06-24 18:22:47 -04:00
Vadim Girlin
eafd331cf3
r600g: implement fragment and vertex color clamp
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38440
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
2011-06-24 15:23:41 -04:00
Vadim Girlin
d81126b714
r600g: optimize spi update
...
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
2011-06-24 15:23:38 -04:00
Vadim Girlin
8567e02dca
r600g: LIT: fix x&y slots order
...
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
2011-06-24 15:23:35 -04:00
Brian Paul
08183357c0
gallium/tests/trivial: update comment
2011-06-24 09:02:57 -06:00
Brian Paul
b663292ae9
gallium/tests/trivial: use CXX to do final link
2011-06-24 09:02:47 -06:00
Alon Levy
c9760c5c89
gallium/tests/trivial: make it build
...
Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-06-24 08:59:42 -06:00
Chia-I Wu
febf5e4147
st/egl: make native_buffer interface typed
...
Use a typed struct to describe the native buffer and let the backends
map the native buffer to winsys_handle for
resource_from_handle/resource_to_handle.
2011-06-24 16:49:27 +09:00
Chia-I Wu
875a1f8960
targets/egl: removed
...
Not used.
2011-06-24 16:49:27 +09:00
Chia-I Wu
b8f097f7a0
targets/egl-static: replace targets/egl
...
Build egl_gallium from targets/egl-static intead of targets/egl. The
latter exposes (unversioned) gallium interfaces and is frowned upon.
2011-06-24 16:49:27 +09:00