mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 18:48:28 +02:00
Guess another unknown register in R300 command buffer initialization. (Oliver McFadden)
This commit is contained in:
parent
e64166703a
commit
69e57cf6ae
4 changed files with 6 additions and 5 deletions
|
|
@ -341,8 +341,8 @@ void r300InitCmdBuf(r300ContextPtr r300)
|
|||
r300->hw.polygon_mode.cmd[0] = cmdpacket0(R300_RE_POLYGON_MODE, 3);
|
||||
ALLOC_STATE( fogp, always, 3, "fogp", 0 );
|
||||
r300->hw.fogp.cmd[0] = cmdpacket0(R300_RE_FOG_SCALE, 2);
|
||||
ALLOC_STATE( unk42A0, always, 2, "unk42A0", 0 );
|
||||
r300->hw.unk42A0.cmd[0] = cmdpacket0(0x42A0, 1);
|
||||
ALLOC_STATE( zbias_cntl, always, 2, "zbias_cntl", 0 );
|
||||
r300->hw.zbias_cntl.cmd[0] = cmdpacket0(R300_RE_ZBIAS_CNTL, 1);
|
||||
ALLOC_STATE( zbs, always, R300_ZBS_CMDSIZE, "zbs", 0 );
|
||||
r300->hw.zbs.cmd[R300_ZBS_CMD_0] = cmdpacket0(R300_RE_ZBIAS_T_FACTOR, 4);
|
||||
ALLOC_STATE( occlusion_cntl, always, 2, "occlusion_cntl", 0 );
|
||||
|
|
@ -481,7 +481,7 @@ void r300InitCmdBuf(r300ContextPtr r300)
|
|||
insert_at_tail(&r300->hw.atomlist, &r300->hw.shade);
|
||||
insert_at_tail(&r300->hw.atomlist, &r300->hw.polygon_mode);
|
||||
insert_at_tail(&r300->hw.atomlist, &r300->hw.fogp);
|
||||
insert_at_tail(&r300->hw.atomlist, &r300->hw.unk42A0);
|
||||
insert_at_tail(&r300->hw.atomlist, &r300->hw.zbias_cntl);
|
||||
insert_at_tail(&r300->hw.atomlist, &r300->hw.zbs);
|
||||
insert_at_tail(&r300->hw.atomlist, &r300->hw.occlusion_cntl);
|
||||
insert_at_tail(&r300->hw.atomlist, &r300->hw.cul);
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@ struct r300_hw_state {
|
|||
struct r300_state_atom polygon_mode;
|
||||
struct r300_state_atom fogp; /* fog parameters (4294) */
|
||||
struct r300_state_atom unk429C; /* (429C) */
|
||||
struct r300_state_atom unk42A0; /* (42A0) */
|
||||
struct r300_state_atom zbias_cntl;
|
||||
struct r300_state_atom zbs; /* zbias (42A4) */
|
||||
struct r300_state_atom occlusion_cntl;
|
||||
struct r300_state_atom cul; /* cull cntl (42B8) */
|
||||
|
|
|
|||
|
|
@ -571,6 +571,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
* Some of the tests indicate that fgl has a fallback implementation of zbias
|
||||
* via pixel shaders.
|
||||
*/
|
||||
#define R300_RE_ZBIAS_CNTL 0x42A0 /* GUESS */
|
||||
#define R300_RE_ZBIAS_T_FACTOR 0x42A4
|
||||
#define R300_RE_ZBIAS_T_CONSTANT 0x42A8
|
||||
#define R300_RE_ZBIAS_W_FACTOR 0x42AC
|
||||
|
|
|
|||
|
|
@ -2089,7 +2089,7 @@ void r300ResetHwState(r300ContextPtr r300)
|
|||
r300PolygonMode(ctx, GL_BACK, ctx->Polygon.BackMode);
|
||||
r300->hw.polygon_mode.cmd[2] = 0x00000001;
|
||||
r300->hw.polygon_mode.cmd[3] = 0x00000000;
|
||||
r300->hw.unk42A0.cmd[1] = 0x00000000;
|
||||
r300->hw.zbias_cntl.cmd[1] = 0x00000000;
|
||||
|
||||
r300PolygonOffset(ctx, ctx->Polygon.OffsetFactor, ctx->Polygon.OffsetUnits);
|
||||
r300Enable(ctx, GL_POLYGON_OFFSET_FILL, ctx->Polygon.OffsetFill);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue