diff options
author | Kenneth Graunke <[email protected]> | 2018-07-30 23:49:34 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | dfe1ee4f6f98408e570b2cce882a566becd9bd7d (patch) | |
tree | 8ae1d8b40c715ad804313919ddf7406617401779 /src/gallium/drivers/iris/iris_resource.c | |
parent | 387a414f2cb2673e9adbe2f84a4a54d5f2a5334c (diff) |
iris: comment everything
1. Write the code
2. Add comments
3. PROFIT (or just avoid cost of explaining or relearning things...)
Diffstat (limited to 'src/gallium/drivers/iris/iris_resource.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 8e50ee2c699..79dcd94566d 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -20,6 +20,15 @@ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE * USE OR OTHER DEALINGS IN THE SOFTWARE. */ + +/** + * @file iris_resource.c + * + * Resources are images, buffers, and other objects used by the GPU. + * + * XXX: explain resources + */ + #include <stdio.h> #include <errno.h> #include "pipe/p_defines.h" @@ -336,7 +345,7 @@ iris_resource_from_handle(struct pipe_screen *pscreen, unreachable("invalid winsys handle type"); } if (!res->bo) - return NULL; + return NULL; uint64_t modifier = whandle->modifier; if (modifier == DRM_FORMAT_MOD_INVALID) { |