| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
nv20_miptree_create() should set various flags.
Copy stuff over from nv40.
trivial/tri does not abort on nv04 swizzled copy anymore.
I still miss my triangle.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
If do_flipp is true, it would first do the proper copy, height would
wrap around to unsigned maximum, and then it attempts to do another
copy.
Return after doing the proper copy.
Signed-off-by: Pekka Paalanen <[email protected]>
|
| |
|
|
|
|
| |
Don't look at nouveau_winsys_pipe.h... I promise it's temporary!
|
|
|
|
|
|
|
| |
this change disassociates, at least from the driver perspective,
the surface from buffer. surfaces are technically now views on the
textures so make it so by hiding the buffer in the internals of
textures.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
move it to pipe/internal/p_winsys_screen.h and start converting
the state trackers to the screen usage
|
| |
| |
| |
| |
| |
| | |
allows the driver to overwrite buffer allocation, first step on the way
to making winsys interface internal to the drivers. state trackers and
the code above it will go through the screen
|
| |
| |
| |
| |
| |
| |
| | |
Color and Z buffer offsets were emitted here, now also the buffer
handles are emitted so they target the correct memory.
Signed-off-by: Pekka Paalanen <[email protected]>
|
| |
| |
| |
| |
| |
| |
| | |
Probably not necessary, but just in case. Depth registers point to the
color buffer, when there is no depth buffer.
Signed-off-by: Pekka Paalanen <[email protected]>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Based on my renouveau dump, adjust initial hw state related to Z-mapping,
and add one unknown depth reg into depth/stencil/alpha emission.
Now trivial/tri-z on nv20 looks identical to swrast rendered one.
Signed-off-by: Pekka Paalanen <[email protected]>
|
| |
| |
| |
| |
| |
| |
| | |
nv20_draw_elements() uses the draw module, and draw_flush() needs to be
called to actually emit the vertices immediately.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|/
|
|
|
|
| |
Other nvXX drivers seem to do this, so I do it too.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
| |
reuse the size of the actual buffer
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
NV20 seems to be very different to NV10. In vertex array, pos is first,
not last. There are maximum 16 attributes and only few are currently
known.
This makes trivial/tri work on NV20.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
|
|
| |
VIEWPORT_SCALE0 seems to do with translation and the sane
value for x and y is zero.
VIEWPORT_SCALE1 is still a mystery.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit is mostly just a cosmetic change that cleans-up the interfaces,
replacing pipe_winsys::surface_* calls by
/**
* Allocate storage for a display target surface.
*
* Often surfaces which are meant to be blitted to the front screen (i.e.,
* display targets) must be allocated with special characteristics, memory
* pools, or obtained directly from the windowing system.
*
* This callback is invoked by the pipe_screenwhen creating a texture marked
* with the PIPE_TEXTURE_USAGE_DISPLAY_TARGET flag to get the underlying
* buffer storage.
*/
struct pipe_buffer *(*surface_buffer_create)(struct pipe_winsys *ws,
unsigned width, unsigned height,
enum pipe_format format,
unsigned usage,
unsigned *stride);
Most drivers were updated but not all were tested. Use the softpipe pipe
driver and the xlib winsys changes as a reference when fixing other drivers.
|
| |
|
|
|
|
|
|
|
| |
Also make the type unsigned instead of signed, since negative
values do not make sense.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
|
| |
Up till now, nv20 driver has been using NV10TCL, and being
really an nv10 driver. That has changed.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
|
| |
Also changes nvgl_primitive() to return zero, i.e. error, on unknown
primitive.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
| |
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
| |
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
| |
Fresh from renouveau.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
| |
This is nv10 commands, but is in nv20 source files.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
| |
This is still for NV10 hardware.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
| |
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
|
|
|
| |
The function should update nv20->vertex_info, and not just a
local struct that's thrown away immediately.
Fixes a SIGFPE due to vbuf->vertex_size = 0 in vbuf_alloc_vertices().
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
| |
glxinfo doesn't degfault anymore.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
No functional changes, only changed function, struct, macro etc. names.
nv10 -> nv20
nv30 -> nv20
celsius -> kelvin
Did not touch fifo command macros.
Don't try to build nv20_vertprog.c for now.
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
| |
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
|
|
| |
Signed-off-by: Pekka Paalanen <[email protected]>
|
|
Signed-off-by: Pekka Paalanen <[email protected]>
|