Brian Paul
39fd18014c
tests: need tkmap.c for prim.c
16 年之前
Brian Paul
8b45c9ce6e
draw: implement flatshade_first for drawing pipeline
16 年之前
Brian Paul
5aec03aaf4
softpipe: implement flatshade_first for triangles
16 年之前
Brian Paul
6f26f8c750
softpipe: implement flatshade_first for line setup
16 年之前
Brian Paul
091fcf3a27
Revert "softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGON"
This reverts commit 5d75124db4 .
16 年之前
Brian Paul
ab6508e399
mesa: fix parity error for tri strips with 1st provoking vertex
16 年之前
Brian Paul
8b875b732f
tnl: fix first provoking vertex case for unfilled triangles
16 年之前
Brian Paul
1f1aa0c20c
tnl: fix first provoking vertex bug for line loops
16 年之前
Brian Paul
2ecc2ece9c
docs: implemented GL_EXT_provoking_vertex
16 年之前
Brian Paul
a444d245e5
mesa: enable GL_EXT_provoking_vertex for sw drivers
16 年之前
Brian Paul
82bc6e5ae3
tnl: implement GL_EXT_provoking_vertex
16 年之前
Brian Paul
b631d5fbf4
st: set pipe_rasterizer_state::flatshade_first according to provoking vertex state
16 年之前
Brian Paul
f2f89b01d2
mesa: glGet queries for GL_EXT_provoking_vertex
16 年之前
Brian Paul
fe86e50896
mesa: exec/dlist functions for glProvokingVertexEXT()
16 年之前
Brian Paul
89966cdb1b
mesa: data structure updates for GL_EXT_provoking_vertex
16 年之前
Brian Paul
bd6c44458f
mesa: regenerated enums for GL_EXT_provoking_vertex
16 年之前
Brian Paul
b9c245238c
mesa: regenerated API files for GL_EXT_provoking_vertex
16 年之前
Brian Paul
8c12c9bf76
mesa: GL API changes for GL_EXT_provoking_vertex
This creates the new glProvokingVertexEXT() entrypoint.
16 年之前
Corbin Simpson
b70fcd620d
r300-gallium, radeon-gallium: Make add_buffer indicate when a flush is needed.
On a side note, why is RADEON_MAX_BOS 24? Should ask airlied about that.
16 年之前
Ben Skeggs
534f1e8f02
nv50: some mipmapping fixes
16 年之前
Christoph Bumiller
c11c107f7d
nv50: negate sources directly where supported
16 年之前
Christoph Bumiller
87eea6e2b2
nv50: introduce emit_cvt and use it
This makes some code cleaner, and we can now easily
do CEIL and TRUNC.
16 年之前
Christoph Bumiller
3accd7ebe9
nv50: fix TXP
For TXP we need to divide texture coords by their w component, or
use the coords' 1/w in the perspective interpolation instruction.
This also tries to support 1D, 3D and CUBE textures, and lets the
instruction only load the components that are used.
16 年之前
Christoph Bumiller
94ba165dff
nv50: use multiple constant buffers
Use different buffers for immds, FP params, and VP params.
One has to map constant buffer indices in shader code to buffers
defined via CB_DEF. In principle, we could use more buffers so
we'd have to change the shader code less frequently.
16 年之前
Christoph Bumiller
f9268ccd7f
nv50: don't look for unfreed temps in free_nv50_pc
Since we stopped using alloc_temp to get hw indices for FP attrs
there shouldn't be any non-deallocated temps left.
16 年之前
Christoph Bumiller
7ab96f4f73
nv50: release hw TEMPs early
Since we know when we don't use a TEMP or FP ATTR register anymore,
we can release their hw resources early.
16 年之前
Christoph Bumiller
708c711f83
nv50: allow immediates for MOV, ADD and MUL
Immediates are inlined now where possible, so we need to set
pc->allow32 to FALSE in LIT where we have the conditional MOV,
since immediates swallow the predicate bits.
16 年之前
Christoph Bumiller
d015cba88f
nv50: enable half insns for MOV and MUL
16 年之前
Christoph Bumiller
44b3bfaa75
nv50: make sure half-long insns are paired
I chose to just convert unpaired 32 bit length instructions
after parsing all instructions, although it might be possible
to determine beforehand whether there would be any lone ones,
and then even do some swapping to bring them together ...
16 年之前
Christoph Bumiller
de651a228f
nv50: enable KIL in register 19a8
16 年之前
Christoph Bumiller
dac709d0cf
nv50: don't overwrite sources before they're used
This would have happened in p.e. ADD TEMP[0], TEMP[0].xyxy, TEMP[1]
or RCP/RSQ TEMP[i], TEMP[i].
16 年之前
Christoph Bumiller
f579a99cc6
nv50: put FP outputs where they belong
Depth output in fragment programs should end up in the first
register after the color outputs.
16 年之前
Christoph Bumiller
dd9ded42b9
nv50: modified FP attribute loading
VP outputs that should be loadable in the FP are mapped to
interpolant indices by HPOS, COL0 etc.; of course HPOS is
always written, so the highest byte of 1988 is a bitmask that
selects which components of HPOS are used for interpolants,
i.e. the FP inputs in COL0 start at index POPCNT(1988[24:28]).
16 年之前
Christoph Bumiller
e88ec312df
nv50: inspect decl semantic and interpolation mode
Record interpolation mode for attributes while parsing declarations,
and also remember the indices of FP color inputs and FP depth output,
which has to end up in the highest output register.
16 年之前
Christoph Bumiller
bcecb8ff66
nv50: record last access to temp and attr regs
We now inspect the TGSI instructions in tx_prep to determine where
temps and FP attrs are last accessed.
This will enable us to reclaim some temporaries early and we also
use it to omit pre-loading FP attributes that aren't used.
16 年之前
Christoph Bumiller
7e7d3a87ec
nv50: save some space in immediate buffer
We could do even better (like just allocating 1 value in alloc_immd),
but that's fine for now I guess.
16 年之前
Christoph Bumiller
aad31d69ce
nv50: fix SIGN_SET case in tgsi_src
16 年之前
Christoph Bumiller
4a7cf8f66f
nv50: set dst.z,w to 0,1 in SCS and XPD
According to tgsi-instruction-set.txt, if they are written, z and w
should be set to 0 and 1 respectively in SCS, and w to 1.0 in XPD.
16 年之前
Christoph Bumiller
229992d281
nv50: make LRP instruction nicer
16 年之前
Christoph Bumiller
9417582f39
nv50: fix some memory leaks in shader assembler
16 年之前
Ben Skeggs
65e3fb7b46
nouveau: explicitly request mappable buffers for the moment
16 年之前
Mike Kaplinksiy
713b636a0e
draw: Fix assertion failure at fetch_emit_prepare
16 年之前
Brian Paul
5be48307d5
demos: remove some old debug/test code
16 年之前
Brian Paul
b86067c610
softpipe: comments
16 年之前
Brian Paul
31deacb8d3
softpipe: include sp_winsys.h to silence warning (unprototyped function)
16 年之前
Brian Paul
5d75124db4
softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGON
Use the first vertex, not the last.
16 年之前
Brian Paul
c13bd74885
st/mesa: init Format field of vertex arrays for feedback mode
Fixes segfault in glRasterPos()
16 年之前
Eric Anholt
8ec6e03679
i915: Fall back on NPOT textured metaops on 830-class.
16 年之前
Eric Anholt
0e83e8f51a
i915: Restore the Viewport and DepthRange functions on 8xx.
Fixes failed viewport updates on glxgears (and other apps) resize since
e41780fedc .
Bug #20473 .
16 年之前
Chris Wilson
9178b31546
intel: Override MaxRenderbufferSize with hardware constraints
Limit the maximum renderbuffer size to 8192 on i965 and to 2048 on
earlier hardware.
16 年之前