projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r300: refactor PVS code and constants emission
[mesa.git]
/
src
/
mesa
/
drivers
/
dri
/
r300
/
r300_cmdbuf.h
diff --git
a/src/mesa/drivers/dri/r300/r300_cmdbuf.h
b/src/mesa/drivers/dri/r300/r300_cmdbuf.h
index 53bcc0eeb49d6db0373487d32f2a01c6d82ad0c5..0e68da928ed51122ddb81487633b3e02b375fb73 100644
(file)
--- a/
src/mesa/drivers/dri/r300/r300_cmdbuf.h
+++ b/
src/mesa/drivers/dri/r300/r300_cmdbuf.h
@@
-38,14
+38,32
@@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "r300_context.h"
#include "r300_context.h"
-extern void r300InitCmdBuf(r300ContextPtr r300);
+#define CACHE_FLUSH_BUFSZ (4*2)
+#define PRE_EMIT_STATE_BUFSZ (2+2)
+#define AOS_BUFSZ(nr) (3+(nr >>1)*3 + (nr&1)*2 + (nr*2))
+#define FIREAOS_BUFSZ (3)
+#define SCISSORS_BUFSZ (3)
+
+void r300InitCmdBuf(r300ContextPtr r300);
void r300_emit_scissor(GLcontext *ctx);
void r300_emit_scissor(GLcontext *ctx);
-void emit_vpu(GLcontext *ctx, struct radeon_state_atom * atom);
-int check_vpu(GLcontext *ctx, struct radeon_state_atom *atom);
+void r300_emit_vpu(struct r300_context *ctx,
+ uint32_t *data,
+ unsigned len,
+ uint32_t addr);
+
+void r500_emit_fp(struct r300_context *r300,
+ uint32_t *data,
+ unsigned len,
+ uint32_t addr,
+ unsigned type,
+ unsigned clamp);
-void emit_r500fp(GLcontext *ctx, struct radeon_state_atom * atom);
-int check_r500fp(GLcontext *ctx, struct radeon_state_atom *atom);
-int check_r500fp_const(GLcontext *ctx, struct radeon_state_atom *atom);
+void r300_emit_cb_setup(struct r300_context *r300,
+ struct radeon_bo *bo,
+ uint32_t offset,
+ GLuint format,
+ unsigned cpp,
+ unsigned pitch);
-#endif
/* __R300_CMDBUF_H__ */
+#endif /* __R300_CMDBUF_H__ */