i965: Document inconsistent units the URB size is represented in.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 25 Nov 2015 12:51:16 +0000 (14:51 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 9 Dec 2015 12:00:30 +0000 (14:00 +0200)
Every other gen the representation of the URB size was changed and
previous ones weren't updated.  I'd be willing to write a series
normalizing this to be KB on all generations if anybody else cares.

src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_device_info.h

index 51d573a9435c988900d284bddaf57327f79471a3..a8455413e3682e437329578d35ee6a646465f3de 100644 (file)
@@ -1026,7 +1026,13 @@ struct brw_context
       GLuint clip_start;
       GLuint sf_start;
       GLuint cs_start;
-      GLuint size; /* Hardware URB size, in KB. */
+      /**
+       * URB size in the current configuration.  The units this is expressed
+       * in are somewhat inconsistent, see brw_device_info::urb::size.
+       *
+       * FINISHME: Represent the URB size consistently in KB on all platforms.
+       */
+      GLuint size;
 
       /* True if the most recently sent _3DSTATE_URB message allocated
        * URB space for the GS.
index 4a8fc537d43b4a2a7d99f970dd0b28aa4433af3b..73d682083a15f3b13d5cc28084fc11eec9931416 100644 (file)
@@ -81,6 +81,11 @@ struct brw_device_info
    unsigned max_cs_threads;
 
    struct {
+      /**
+       * Hardware default URB size.  The units this is expressed in are
+       * somewhat inconsistent: 512b units on Gen4-5, KB on Gen6-7, and KB
+       * times the slice count on Gen8+.
+       */
       unsigned size;
       unsigned min_vs_entries;
       unsigned max_vs_entries;