| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| | |
Fixes piglit/fbo_readpixels since staging upload changes.
|
| |
| |
| |
| |
| |
| | |
Currently r600_resource_copy_region() will turn these copies into
transfers + memcpys, so to avoid recursion we must not turn those
transfers back into blits.
|
| | |
|
| |
| |
| |
| |
| |
| | |
For some reason I though we needed the _DISCARD flag to avoid
readbacks, which isn't true at all. Now write operations should
pipeline properly, gives a good speedup to demos/tunnel.
|
| | |
|
| |
| |
| |
| |
| | |
Seems to sort-of work for non-mipmapped textures. Better than just
black anyway.
|
| |
| |
| |
| |
| |
| | |
Don't use an intermediate for formats which don't support hardware
blits under u_blitter.c, as these will recursively attempt to create a
transfer.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Trivial change that avoids a segmentation fault when the blitter state
happens to be bound when the context is destroyed.
The free calls should probably removed altogether in the future -- the
responsibility to destroy the state atoms lies with whoever created it,
and the safest thing for the pipe driver is to not touch any bound state
in its destructor.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Discard fractional bits from linewidth. This matches the nvidia
closed drivers, my reading of the OpenGL SI and current llvmpipe
behaviour.
It looks a lot nicer & avoids ugliness where lines alternate between n
and n+1 pixels in width along their length.
Also fix up r600g to match.
|
| | |
|
| |
| |
| |
| |
| | |
Should do better than this and actually unbind the buffer, but haven't
yet gotten it to work.
|
| |
| |
| |
| |
| |
| |
| | |
These were previously being left in the default (D3D) mode. This mean
that triangles were drawn slightly incorrectly, but also because this
state is relied on by the u_blitter code, all blits were half a pixel
off.
|
| |
| |
| |
| | |
These were being set but not used anywhere.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Generalize the existing tiled_buffer path in texture transfers for use
in some non-tiled up and downloads.
Use a staging buffer, which the winsys will restrict to GTT memory.
GTT buffers have the major advantage when they are mapped, they are
cachable, which is a very nice property for downloads, usually the CPU
will want to do look at the data it downloaded.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This opens the question of what interface the winsys layer should
really have for talking about these concepts.
For now I'm using the existing gallium resource usage concept, but
there is no reason not use terms closer to what the hardware
understands - eg. the domains themselves.
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Tilman Sauerbeck <[email protected]>
|
| |
| |
| |
| | |
Signed-off-by: Tilman Sauerbeck <[email protected]>
|
| |
| |
| |
| | |
Signed-off-by: Tilman Sauerbeck <[email protected]>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Important as more constant buffers per shader start to get used.
Fix up r600 (tested) and nv50 (untested) to cope with this. Drivers
previously didn't see unbinds of constant buffers often or ever, so
this isn't always dealt with cleanly.
For r600 just return and keep the reference. Will try to do better in
a followup change.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Maybe this isn't going into the right direction,
but it makes handling the code easier for now.
|
|\|
| |
| |
| |
| | |
Conflicts:
src/gallium/include/pipe/p_format.h
|
| | |
|
| |
| |
| |
| |
| |
| | |
This fix got lost in the state rework merge.
Signed-off-by: Tilman Sauerbeck <[email protected]>
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
[airlied: remove unused vars]
Signed-off-by: Tilman Sauerbeck <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
|
| |
| |
| |
| |
| |
| |
| | |
Not yet complete.
Signed-off-by: Tilman Sauerbeck <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
|
| | |
|
| |
| |
| |
| |
| | |
Signed-off-by: Tilman Sauerbeck <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
|
| |
| |
| |
| |
| | |
no point duplicating code that doesn't touch hw, also make it easier
to spot mistakes
|
| | |
|
| |
| |
| |
| |
| |
| | |
At the moment you need kernel patches to have texture tiling work
with the kernel CS checker, so once they are upstream and the drm version
is bumped we can make this enable flip the other way most likely.
|
| |
| |
| |
| |
| | |
this sets things up to align stride/height with tile sizes,
it also adds support for the 2D/1D array mode cross over point.
|
| |
| |
| |
| | |
this is to be used to decide not to tile a surface being used for transfers.
|
| |
| |
| |
| |
| | |
we need to know the aligned height when binding the surface to cb/zb,
not the gallium surface height.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Since the hw transitions from 2D->1D sampling below the 2D macrotile
size we need to keep track of the array mode per level so we can
render to it using the CB.
|
| |
| |
| |
| | |
this adds a new minify function to the driver to ensure this.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Silences these GCC warnings.
r600_shader.c: In function 'tgsi_exp':
r600_shader.c:2339: warning: 'r600_src[0].rel' is used uninitialized in this function
r600_shader.c:2339: warning: 'r600_src[0].abs' is used uninitialized in this function
r600_shader.c:2339: warning: 'r600_src[0].neg' is used uninitialized in this function
r600_shader.c:2339: warning: 'r600_src[0].chan' is used uninitialized in this function
r600_shader.c:2339: warning: 'r600_src[0].sel' is used uninitialized in this function
|
| |
| |
| |
| | |
we need to know if the back is tiled so we can blit from it properly.
|
| |
| |
| |
| | |
this makes readback with tiled back work better.
|
| |
| |
| |
| | |
cleanup what I'm nearly sure is unnecessary work in the depth blit code.
|