diff options
author | Francisco Jerez <[email protected]> | 2015-02-10 15:51:34 +0200 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-02-10 16:05:47 +0200 |
commit | 447879eb88b8df41ad32cf4406cc636b112b72d9 (patch) | |
tree | aae099dc2bcae6ab1dbde824e6b4d0a401b4ea17 /src/mesa/drivers/dri/i965/brw_fs_live_variables.h | |
parent | e6146e6f14d5e2f9080ce033814fb1d14a175e70 (diff) |
i965: Factor out virtual GRF allocation to a separate object.
Right now virtual GRF book-keeping and allocation is performed in each
visitor class separately (among other hundred different things),
leading to duplicated logic in each visitor and preventing layering as
it forces any code that manipulates i965 IR and needs to allocate
virtual registers to depend on the specific visitor that happens to be
used to translate from GLSL IR.
v2: Use realloc()/free() to allocate VGRF book-keeping arrays (Connor).
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_live_variables.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_live_variables.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_live_variables.h b/src/mesa/drivers/dri/i965/brw_fs_live_variables.h index a52f922d959..a9b61aa39e5 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_live_variables.h +++ b/src/mesa/drivers/dri/i965/brw_fs_live_variables.h @@ -77,7 +77,7 @@ public: /** * Map from any index in block_data to the virtual GRF containing it. * - * For virtual_grf_sizes of [1, 2, 3], vgrf_from_var would contain + * For alloc.sizes of [1, 2, 3], vgrf_from_var would contain * [0, 1, 1, 2, 2, 2]. */ int *vgrf_from_var; |