[Mesa-dev] [PATCH 13/13] i965/fs_visitor: do not explicitly set outputs[x].file

Emil Velikov emil.l.velikov at gmail.com
Thu Nov 5 08:18:01 PST 2015


From: Emil Velikov <emil.velikov at collabora.co.uk>

This commits partially reverts "i965: Initialize registers' file to
BAD_FILE."

No longer needed as of commit "i965/fs: properly construct fs_reg" which
removes the memset(...0...), and correctly sets BAD_FILE.

Signed-off-by: Emil Velikov <emil.velikov at collabora.co.uk>
---
 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index 85afc36..bc9b313 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -1189,9 +1189,6 @@ fs_visitor::init()
    memset(&this->payload, 0, sizeof(this->payload));
    memset(this->outputs, 0, sizeof(this->outputs));
    memset(this->output_components, 0, sizeof(this->output_components));
-   for (unsigned i = 0; i < ARRAY_SIZE(this->outputs); i++) {
-      this->outputs[i].file = BAD_FILE;
-   }
    this->source_depth_to_render_target = false;
    this->runtime_check_aads_emit = false;
    this->first_non_payload_grf = 0;
-- 
2.6.2



More information about the mesa-dev mailing list