Mesa (main): llvmpipe: add minor comments in lp_rast.h, lp_setup-rect.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 14 20:00:36 UTC 2022


Module: Mesa
Branch: main
Commit: 4d5d7d16dced9727d4a1d37aade822ffd24d1345
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d5d7d16dced9727d4a1d37aade822ffd24d1345

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jun  7 11:12:07 2022 -0600

llvmpipe: add minor comments in lp_rast.h, lp_setup-rect.c

Signed-off-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17062>

---

 src/gallium/drivers/llvmpipe/lp_rast.h       | 2 +-
 src/gallium/drivers/llvmpipe/lp_setup_rect.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h
index 10c2096525d..c1e712dc2df 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast.h
@@ -382,7 +382,7 @@ lp_rast_arg_null( void )
 #define LP_RAST_FLAGS_BLIT           (0x8)
 
 struct lp_bin_info {
-   unsigned type:8;
+   unsigned type:8;    // bitmask of LP_RAST_FLAGS_x
    unsigned count:24;
 };
 
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_rect.c b/src/gallium/drivers/llvmpipe/lp_setup_rect.c
index 74c56893991..6e5d5ba65ea 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_rect.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_rect.c
@@ -206,7 +206,7 @@ partial(struct lp_setup_context *setup,
         const struct lp_rast_rectangle *rect,
         boolean opaque,
         unsigned ix, unsigned iy,
-        unsigned mask)
+        unsigned mask) // RECT_PLANE_x bits
 {
    if (mask == 0) {
       assert(rect->box.x0 <= ix * TILE_SIZE);



More information about the mesa-commit mailing list