Re: [Mesa-dev] [PATCH 1/3] i965: Add comments to the new brw_state_state structure's fields.

2013-09-06 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes:

 These are largely based on the similar fields in brw-wm.

 Signed-off-by: Kenneth Graunke kenn...@whitecape.org
 ---
  src/mesa/drivers/dri/i965/brw_context.h | 7 +++
  1 file changed, 7 insertions(+)

 diff --git a/src/mesa/drivers/dri/i965/brw_context.h 
 b/src/mesa/drivers/dri/i965/brw_context.h
 index 57f086b..97c66ab 100644
 --- a/src/mesa/drivers/dri/i965/brw_context.h
 +++ b/src/mesa/drivers/dri/i965/brw_context.h
 @@ -821,15 +821,22 @@ struct brw_query_object {
   */
  struct brw_stage_state
  {
 +   /** Scratch buffer */
 drm_intel_bo *scratch_bo;

This one doesn't tell me anything more than the variable's name.
Optional scratch buffer used to store spilled register values maybe?

Other than that, this series is:

Reviewed-by: Eric Anholt e...@anholt.net

I think patch 3 wants a patch to follow it that merges
brw_wm_binding_table and brw_vec4_upload_binding_table, at least.  And
that could be in a fancy new brw_surface_state.c file maybe, instead of
stuffed in one of the two stages?


pgp0ST22HgFus.pgp
Description: PGP signature
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [PATCH 1/3] i965: Add comments to the new brw_state_state structure's fields.

2013-09-05 Thread Kenneth Graunke
These are largely based on the similar fields in brw-wm.

Signed-off-by: Kenneth Graunke kenn...@whitecape.org
---
 src/mesa/drivers/dri/i965/brw_context.h | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_context.h 
b/src/mesa/drivers/dri/i965/brw_context.h
index 57f086b..97c66ab 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -821,15 +821,22 @@ struct brw_query_object {
  */
 struct brw_stage_state
 {
+   /** Scratch buffer */
drm_intel_bo *scratch_bo;
+
+   /** Pull constant buffer */
drm_intel_bo *const_bo;
+
/** Offset in the program cache to the program */
uint32_t prog_offset;
+
+   /** Offset in the batchbuffer to Gen4-5 pipelined state (VS/WM/GS_STATE). */
uint32_t state_offset;
 
uint32_t push_const_offset; /* Offset in the batchbuffer */
int push_const_size; /* in 256-bit register increments */
 
+   /* Binding table: pointers to SURFACE_STATE entries. */
uint32_t bind_bo_offset;
uint32_t surf_offset[BRW_MAX_VEC4_SURFACES];
 
-- 
1.8.3.4

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev