[Mesa-dev] [PATCH 06/24] i965: Add and use enum brw_reg_file.
Kenneth Graunke
kenneth at whitecape.org
Thu Nov 5 14:18:54 PST 2015
On Monday, November 02, 2015 04:29:16 PM Matt Turner wrote:
[snip]
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
> index e980003..ed3e335 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
> @@ -33,7 +33,8 @@
> #include "brw_fs.h"
> #include "brw_cfg.h"
>
> -static uint32_t brw_file_from_reg(fs_reg *reg)
> +static enum brw_reg_file
> +brw_file_from_reg(fs_reg *reg)
> {
> switch (reg->file) {
> case GRF:
> @@ -48,7 +49,7 @@ static uint32_t brw_file_from_reg(fs_reg *reg)
> case UNIFORM:
> unreachable("not reached");
> }
> - return 0;
> + return GRF;
> }
I agree with Emil, let's make this BRW_ARCHITECTURE_REGISTER_FILE.
Mostly, I don't like it returning "GRF" because this returns BRW_*_FILE
enums, which are separate from the GRF/MRF/etc. enum.
--Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151105/94b0d903/attachment.sig>
More information about the mesa-dev
mailing list